Extremely Long Devserver Build Times (10-15 minutes)
Unanswered
Giant panda posted this in #help-forum
Giant pandaOP
After updating from NextJS 12 to NextJS 14, my initial build times when using the dev server have risen exponentially from seconds to minutes. On average, rendering the very first page will take 10-15 minutes when
The CLI takes 10-15 minutes to render the first page before displaying a compile time of <10s, which tells me that the slowdown is occurring as part of some initial pre-processing step that isn't immediately apparent.
I'm not sure how to even begin debugging this, but is there a process to figuring out why this initial build takes so long?
yarn dev is first run, and will then compile as expected afterwards.The CLI takes 10-15 minutes to render the first page before displaying a compile time of <10s, which tells me that the slowdown is occurring as part of some initial pre-processing step that isn't immediately apparent.
I'm not sure how to even begin debugging this, but is there a process to figuring out why this initial build takes so long?
8 Replies
Did you try deleting the nextjs build cache folder? @Giant panda
Giant pandaOP
I did, and it didn't seem to have any effect.
I think I've narrowed it down to something about the way that Next UI & Tailwind export packages bogging down the static analyzer.
I think I've narrowed it down to something about the way that Next UI & Tailwind export packages bogging down the static analyzer.
May or may not be related to barrel files, but updating imports hasn't changed the build time any that I can tell
Try turbo @Giant panda
Giant pandaOP
This is turbo 

Lmao wtf
Orange-tailed bumble bee
Hello Team,
I need assistance in updating my Next.js application from version 12.2.3 to the latest or highest version. My project currently uses React and React-DOM version 17.0.1.
However, when I attempt the update, the application does not function correctly due to numerous breaking changes and code breakages. My project is structured using the traditional page-based approach, not the latest app routing structure.
My goal is to update Next.js without making significant changes to the codebase or file structure. Any guidance or suggestions on how to achieve this would be greatly appreciated. @Arinji @Giant panda
I need assistance in updating my Next.js application from version 12.2.3 to the latest or highest version. My project currently uses React and React-DOM version 17.0.1.
However, when I attempt the update, the application does not function correctly due to numerous breaking changes and code breakages. My project is structured using the traditional page-based approach, not the latest app routing structure.
My goal is to update Next.js without making significant changes to the codebase or file structure. Any guidance or suggestions on how to achieve this would be greatly appreciated. @Arinji @Giant panda
@Orange-tailed bumble bee Hello Team,
I need assistance in updating my Next.js application from version 12.2.3 to the latest or highest version. My project currently uses React and React-DOM version 17.0.1.
However, when I attempt the update, the application does not function correctly due to numerous breaking changes and code breakages. My project is structured using the traditional page-based approach, not the latest app routing structure.
My goal is to update Next.js without making significant changes to the codebase or file structure. Any guidance or suggestions on how to achieve this would be greatly appreciated. <@890486507872342027> <@107523009274707968>
a different question, please open a different post. also kindly don't ping people not yet involved with the main topic of your question.