NextJS production and dev builds take >20 minutes
Unanswered
Tibetan Terrier posted this in #help-forum
Tibetan TerrierOP
### Link to the code that reproduces this issue
https://codesandbox.io/p/github/imprakharshukla/rapid/draft/keen-rumple
### To Reproduce
1. Install the packages with
2. Start the production build with
### Current vs. Expected behavior
The build runs for over 25 minutes (local and on Vercel).
It should not take that long.
### Provide environment information
### Which area(s) are affected? (Select all that apply)
Not sure
### Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local)
### Additional context
I am currently using
This is also not limited to this project as well. It is the same for another project I am working on.
I suspect a pnpm internal package to do this but I cannot access the build logs and since
https://codesandbox.io/p/github/imprakharshukla/rapid/draft/keen-rumple
### To Reproduce
1. Install the packages with
pnpm install2. Start the production build with
pnpm build --filter demo### Current vs. Expected behavior
The build runs for over 25 minutes (local and on Vercel).
It should not take that long.
### Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:34 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T8103
Available memory (MB): 16384
Available CPU cores: 8
Binaries:
Node: 20.11.0
npm: 8.19.2
Yarn: 1.22.17
pnpm: 8.5.1
Relevant Packages:
next: 14.2.2 // Latest available version is detected (14.2.2).
eslint-config-next: N/A
react: 18.2.0
react-dom: 18.2.0
typescript: N/A
Next.js Config:
output: N/A### Which area(s) are affected? (Select all that apply)
Not sure
### Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local)
### Additional context
I am currently using
ver. 14.1.1 but ver. 14.2 makes no difference.This is also not limited to this project as well. It is the same for another project I am working on.
I suspect a pnpm internal package to do this but I cannot access the build logs and since
--debug does not display anything. I am at my wits end.