Next.js Discord

Discord Forum

Slow dev experience with Turbopack

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

Is this normal? What can I do to improve this?

9 Replies

Avatar
@American `✓ Compiled /login in 16.6s (7349 modules)` Is this normal? What can I do to improve this?
Avatar
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
Avatar
AmericanOP
Thanks, but I am using turbopack
Changed a single className now:
[Fast Refresh] done in 34988ms
Avatar
@American Thanks, but I am using turbopack
Avatar
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
Avatar
AmericanOP
Is there no way to debug why it's slow?
Avatar
@American Is there no way to debug why it's slow?
Avatar
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
Avatar
AmericanOP
Thanks for taking the time!
Avatar
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