`next dev` making vscode extremely laggy and unusable
Unanswered
MrDiamond posted this in #help-forum
Every time I run
next dev, it makes my vscode almost unusable and super laggy. Is this just a side effect I have to deal with or is there something I'm doing wrong?32 Replies
Sometimes it gets so bad I have to reload vscode entirely.
you can try the turbopack, but it can be more buffy (so far on projects thata it works on for me, it uses less mem and is faster)
@!=tgt in your package.json, change the dev script
i just get this:
[node.js fs] rename failed after 489 retries with error: Error: EPERM: operation not permitted, rename 'C:\Users\[user]\OneDrive\Documents\Workspace\ramen\.next\server\middleware-build-manifest.js.tmp.0qt8sycg78v' -> 'C:\Users\[user]\OneDrive\Documents\Workspace\ramen\.next\server\middleware-build-manifest.js'
[Error: EPERM: operation not permitted, rename 'C:\Users\[user]\OneDrive\Documents\Workspace\ramen\.next\server\middleware-build-manifest.js.tmp.0qt8sycg78v' -> 'C:\Users\[user]\OneDrive\Documents\Workspace\ramen\.next\server\middleware-build-manifest.js'] {
errno: -4048,
code: 'EPERM',
syscall: 'rename',
path: 'C:\\Users\\[user]\\OneDrive\\Documents\\Workspace\\ramen\\.next\\server\\middleware-build-manifest.js.tmp.0qt8sycg78v',
dest: 'C:\\Users\\[user]\\OneDrive\\Documents\\Workspace\\ramen\\.next\\server\\middleware-build-manifest.js'
}doesnt happen without --turbo
any help?
turbo is indeed buggy
so uhh lets forget that option if your libs dont work with it
what are your specs of device
i have 16gb ram and it works decently
do you have 4 or something low and thus cant spare much on dev server
i have 40gb of ram and an intel i7
oh thats so good
yeah uhh thats sad if it makes it laggy and unusable
it only uses like 1gb of ram (even outside vscode) but it hogs the cpu
@riský turbo is indeed buggy
It gives this one createContext error that makes me restart the dev server sometimes
and it memory leaked like twice
Yeah I don’t trust it right now
Anyway is there anyway to make next dev faster or am I stuck?
American Crow
maybe don't save your projects within onedrive? lol
I dont use onedrive. The folder is left over and I was too lazy to move everything (still am)
Tonkinese
Shit... try running it on a M1 macbook. I'm working on a pretty large app, that by it's very nature has to dynamically import just about everything and then only actually ship what is needed, but because Next has to load all of those dynamic imports on the server, the development server is completely unusable. I'm moving everything over to a monorepo right now so I can accomplish literally anything... and it's a nightmare.
I hope something is done soon to make it faster cause it’s pretty bad rn
next dev has memory leaked on me way too many times
This is really a problem- my laptop isn’t very high-end and it constantly overheats because of this.
My desktop handles it ok after a while but my laptop can’t handle it
I have made this a discussion on github as well https://github.com/vercel/next.js/discussions/63068#discussion-6343320
