Next.js Discord

Discord Forum

Slow dev experience with Turbopack

Answered
American posted this in #help-forum
Open in Discord
AmericanOP
✓ Compiled /login in 16.6s (7349 modules)

Is this normal? What can I do to improve this?
Answered by B33fb0n3
When beeing in dev mode, that can be normal. You can improve that by using the --turbo or --turbopack flag when starting your dev server
View full answer

10 Replies

@American `✓ Compiled /login in 16.6s (7349 modules)` Is this normal? What can I do to improve this?
When beeing in dev mode, that can be normal. You can improve that by using the --turbo or --turbopack flag when starting your dev server
Answer
AmericanOP
Thanks, but I am using turbopack
Changed a single className now:
[Fast Refresh] done in 34988ms
@American Thanks, but I am using turbopack
I guess then there is no other way to improve it. Keep in mind, that these long compiling times are only in dev and NOT in production
AmericanOP
Is there no way to debug why it's slow?
@American Is there no way to debug why it's slow?
You can analyse the bundles, the client packages, the server, ... but don't ask me how to do that. When I had longer loading times it was mostly because I used a lot of third party packages and got a huge project with huge pages. I tried to write better and more performant code, but that does not always work
AmericanOP
Thanks for taking the time!
AmericanOP
I'd rather hope someone else sees this and tell me how to do what you suggested, marking it as solved will guarantee that won't happen
AmericanOP
My bad, someone else had disabled turbopack 🤦 sorry about that and thanks for the help!