Next.js Discord

Discord Forum

Latencies in development (same with turbopack)

Answered
Savannah posted this in #help-forum
Open in Discord
SavannahOP
Hey guys, i just create a new project (it only have a landing page with a form that currently call an api route) but my development environment (next dev) is really slow, when i do a change (html, ts or scss file) it's not instantly, i've to refresh the page and it's really slow.

Anyone have an idea ?

Thanks a lot ! 😉
Answered by Savannah
Hello, thank you very much for your reply!

No, it's not since the creation of my project, but 2/3 hours later.

Last night, I searched a bit on the internet, and it might be my lib d'icon (https://lucide.dev/guide/packages/lucide-react). I changed the lib to this one: https://heroicons.com/.

So I'll see, replace all my icons and I'll keep you posted. For the moment I don't really have any more bugs of this kind.
View full answer

7 Replies

I had this problem before where newly created next.js app is slowly as hell in dev mode.

To make sure, does it happened since you created the project or no? If yes :
1. Try reinstalling the node_modules folder
2. If the problems still occur, try to create new next.js app for checking if the newly created project has the same issue, if yes, clear your npm cache and then re install the node_modules folder once again
@lucy I had this problem before where newly created next.js app is slowly as hell in dev mode. To make sure, does it happened since you created the project or no? If yes : 1. Try reinstalling the node_modules folder 2. If the problems still occur, try to create new next.js app for checking if the newly created project has the same issue, if yes, clear your npm cache and then re install the node_modules folder once again
SavannahOP
Hello, thank you very much for your reply!

No, it's not since the creation of my project, but 2/3 hours later.

Last night, I searched a bit on the internet, and it might be my lib d'icon (https://lucide.dev/guide/packages/lucide-react). I changed the lib to this one: https://heroicons.com/.

So I'll see, replace all my icons and I'll keep you posted. For the moment I don't really have any more bugs of this kind.
Answer
SavannahOP
I think it was clearly that...

I already change all of my icons, and i don't have the latencies anymore
@Flemish Giant how the lucid icon make the next js app slow i always use that and did not face this can you share the link to the article where i also look as i always use Lucide
SavannahOP
I can't find it, it was late last night... Sorry about this

But one thing's for sure: since I changed the lib d'icon, I haven't had any bugs like that, I don't know why tbh.
@Savannah Are you using lucide-react or juste lucide ?
Flemish Giant
Yes I using lucide-react