Next.js Discord

Discord Forum

npm run build timeout error

Unanswered
Short mackerel posted this in #help-forum
Open in Discord
Short mackerelOP
Hello,

I'm developing the frontend for a web3 restaurant review Rust program.

Upon initiating npm run build in my projects frontend directory, I got the following error:

npm run build

review-frontend@0.1.0 build
next build

â–² Next.js 14.1.0

✓ Linting and checking validity of types
Creating an optimized production build ...
✓ Compiled successfully
⨯ Static worker exited with code: null and signal: SIGSEGV
âš  Sending SIGTERM signal to static worker due to timeout of 60 seconds. Subsequent errors may be a result of the worker exiting.
âš  Restarted collecting page data for undefined because it took more than 60 seconds
âš  See more info here https://nextjs.org/docs/messages/static-page-generation-timeout
âš  Restarted collecting page data for undefined because it took more than 60 seconds
âš  Restarted collecting page data for undefined because it took more than 60 seconds
⨯ Static worker exited with code: null and signal: SIGSEGV
âš  Sending SIGTERM signal to static worker due to timeout of 60 seconds. Subsequent errors may be a result of the worker exiting.
unhandledRejection Error: Collecting page data for undefined is still timing out after 2 attempts. See more info here https://nextjs.org/docs/messages/page-data-collection-timeout
at onRestart (/home/xander/RiseIn-SolanaBootcamp/Solana-Templates/FinalProject-RestuarantReviewFrontend/node_modules/next/dist/build/index.js:304:27)
at Worker.hasCustomGetInitialProps (/home/xander/RiseIn-SolanaBootcamp/Solana-Templates/FinalProject-RestuarantReviewFrontend/node_modules/next/dist/lib/worker.js:95:40)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Here's what I've done to try and resolve the issue:
† Changed next.config.js to next.config.cjs
† Tried changing timeout from 60secs to 300secs.

What can be done?

Thanks in advance.

0 Replies