Next.js Discord

Discord Forum

Slooooow dev server

Unanswered
Gharial posted this in #help-forum
Open in Discord
Avatar
GharialOP
So I know the next server compiles 1 page at a time. And I THOUGHT that was to help mitigate slow startup times for larger projects. But that doesn't seem to be the case. We have a medium sized project (50 something api routes. 30 different UI routes. 40-50 custom components). And it's getting kind of painful to work with when you need to navigate around some. It's especially painful on auth routes when you have a couple redirects due to logouts or whatever. It can be up to 10s or more waiting on the browser to actually render something.

Is this just how Next dev works on larger projects, or have we done something to cause it to go slow?

15 Replies

Avatar
GharialOP
ok well after digging around a bit. Seems this is just an issue with Next app router 😦
Hopefully they are addressing this with React 19 release?
Avatar
American Chinchilla
You can use turbo
To speed up development
Avatar
GharialOP
hmm, our app breaks when I try that. How much better is it with that?
Avatar
GharialOP
yeah, doesn't seem to like tailwind
Avatar
Double-striped Thick-knee
same issue here tho never got any solutions. development speed mostly depends on machine. and using turbo will most likely break my application at some point
Avatar
GharialOP
Yeah I'm on a 7800 X3D. So not my machine 😦
Avatar
Eurasian Curlew
I use tailwind with turbopack in development with no issues at all
You view the unsupported features of turbopack [here](https://nextjs.org/docs/architecture/turbopack#unsupported-features) may be something else you have going on in your app that breaks it
Avatar
GharialOP
yeah I looked through that and didn't see anything. Maybe the "postprocessor" error is a red herring.
Avatar
Eurasian Curlew
Yeah, turbopack has had all tests passing for some time now for the dev server so it's stable to use in development as long as you aren't using any unsupported features.

Do you have a screenshot of the error you get when you try to enable turbopack?
It's worth looking into because it significantly increases the speed of the server, and the bigger the project the more noticable that improvement is.
Avatar
GharialOP
```
./node_modules/tailwindcss/lib/postcss-plugins/nesting/plugin.js:38:24
Module not found
36 | }
37 | if (typeof opts === "string") {
38 | return require(opts);
| ^^^^^^^^^^^^^
39 | }
40 | if (Object.keys(opts).length <= 0) {
41 | return _postcssnested.default;
that's the error I get