Development server gets stuck at "Creating an optimized production build" step #50280
-
SummaryI am trying to set up a Next.js project by following the installation tutorial. I ran npx create-next-app@latest successfully, but when I try to run the development server using npm run dev, the build process gets stuck at the "Creating an optimized production build" step: - info Linting and checking validity of types
- info Using wasm build of next-swc
- info Creating an optimized production build ... (it stops here)
Steps to reproduce: Run npx create-next-app@latest to create a new Next.js project. Actual behavior: The build process gets stuck at the "Creating an optimized production build" step, and the server doesn't start. Environment: Additional informationI have tried the following steps to resolve the issue, but none of them worked:
Removed the /.next folder.
Ensured that the development server is not running in the background.
Removed both the /.next and /node_modules folders and reinstalled the dependencies.
Any help would be appreciated.
There's no error message, it just stops.ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
i fixed it by updating node version to 18.16.0 and deleting .next folder and rerunning npm run dev again |
Beta Was this translation helpful? Give feedback.
i fixed it by updating node version to 18.16.0 and deleting .next folder and rerunning npm run dev again