-
I am building the project with nextjs and antd, in VS Code it is very slow every time I save the file. I don't know why this is happening, does anyone know how to fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 20 comments 18 replies
-
i have the same issue also i hate page fast refresh |
Beta Was this translation helpful? Give feedback.
-
I have tried a lot in the past few days, and there seems to be no better solution. I found that using |
Beta Was this translation helpful? Give feedback.
-
Same here |
Beta Was this translation helpful? Give feedback.
-
i have same issue. webstorm is not free |
Beta Was this translation helpful? Give feedback.
-
I found the problem with VSCode. It's Extention. I was disable GitLens, jest runner, live server extentions. All problem resolved!. I don't know exactly but it work ^^. I think is GitLens. I love VSCode, so i dont want to change WebStorm. Yaaa |
Beta Was this translation helpful? Give feedback.
-
So isn't there any good solution to get over that behavior? |
Beta Was this translation helpful? Give feedback.
-
delete your git lens and enjoy |
Beta Was this translation helpful? Give feedback.
-
I guess that maybe your problem is related to this issue prettier/prettier-vscode#1333 and not with nextJS. btw my vs code is slow when i work with nextjs also, intellisense linter, everything is fucking me up, i don't know if maybe is a problem with linter and nextjs |
Beta Was this translation helpful? Give feedback.
-
I think creating a new vscode profile (from the profiles option) just for nextjs projects with only the extension required for the project development slightly fixes the issue. |
Beta Was this translation helpful? Give feedback.
-
Same here. So annoying. I disable all extensions except 'Vscode Vim' but it doesn't work until I disable Vim as well |
Beta Was this translation helpful? Give feedback.
-
Hello, I had the same issue, for me I still had not excluded the Hope this helps as it is extremely annoying |
Beta Was this translation helpful? Give feedback.
-
I had the same issue, my problem was because of the auto import extension, I added .next to the ignore path of this extension in the VSCode config and my problem solved. |
Beta Was this translation helpful? Give feedback.
-
I had the same issue with the Next JS 13 app stable version. The longer I run my app in dev mode the longer it takes for save, for intellicode to loads suggestions, also for prettier and eslint to auto format. Example case:
This is very strange bug because only in this Next JS 13 app project that the lags happen. Meanwhile I also opened other project like React project and Next JS 13 pages project, these projects run just fine. For now still not yet found the solution, already tried to add .next in tsconfig and disabling extension, but lag still occurs. |
Beta Was this translation helpful? Give feedback.
-
I was running into the same issue and it turns out that it had to do with the TailwindCSS prettier plugin, not NextJS. By removing |
Beta Was this translation helpful? Give feedback.
-
I had this issue with |
Beta Was this translation helpful? Give feedback.
-
I think the best workaround is to create another VSC profile, within this profile do not install extensions such as gitlens, live server and so on (I'm not really sure why or what causes it) |
Beta Was this translation helpful? Give feedback.
-
just remove if you have any of these packages. mine is working fine after that. |
Beta Was this translation helpful? Give feedback.
-
Probably the "autoimport.filesToScan": "**/*.{js,jsx,ts,tsx,css}", Which will by default scan all the files in |
Beta Was this translation helpful? Give feedback.
-
Removing these two extensions from VS Code worked for me. Auto Import |
Beta Was this translation helpful? Give feedback.
-
My problem was that the disk on which the nextjs project was running was formatted in NTFS, which is not recommended for Ubuntu and which can also cause slowness, especially in cases like nextjs which performs several operations when you edit a file. My solution was to format this disk to ext4, which is the default for Ubuntu and other Linux distros, this significantly improved performance in other applications and also fixed the problem with vscode taking a long time to update the file. |
Beta Was this translation helpful? Give feedback.
I have tried a lot in the past few days, and there seems to be no better solution. I found that using
WebStorm
will not have such a problem. Maybe usingWebStorm
is a good solution.