Next.js Discord

Discord Forum

Next.js latest version fails to build

Unanswered
American Shorthair posted this in #help-forum
Open in Discord
American ShorthairOP
I install latest version of next.js but when I go for a build it fails.

Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
Error occurred prerendering page "/_not-found"
Export encountered errors on following paths:
/_error: /404
/_error: /500
/_not-found
/page: /

12 Replies

Asiatic Lion
Getting similar errors:
Export encountered errors on following paths:
/_not-found

Also getting this error:

Generating static pages (0/24) [ ]Error: Could not find the module "C:\path\to\project\node_modules\next\dist\client\components\error-boundary.js#" in the React Client Manifest. This is probably a bug in the React Server Components bundler.
at ek (C:\path\to\project\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:91:12617)
at C:\path\to\project\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:91:24131
at Object.toJSON (C:\path\to\project\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:91:25224)
at stringify (<anonymous>)
at eT (C:\path\to\project\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:91:13686)
at eP (C:\path\to\project\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:91:14212)
at Timeout._onTimeout (C:\path\to\project\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:91:12034)
at listOnTimeout (node:internal/timers:564:17)
at process.processTimers (node:internal/timers:507:7)

Most of my routes are dynamic. But its still trying to render a few components on build time thats inside the layout.tsx. But since I dont have the tokens etc for connecting to my BE under build, im getting a lot for 401 as well.

Just Updated from next@13.4.19 to next@13.5.4
Spectacled Caiman
Same here, with _not-found.
American ShorthairOP
This is very weird every new project I initialize without coding anything and then build it throws error, but at some computers it does not
Spectacled Caiman
Different os or node version? Im on sonoma Mac OS
Spectacled Caiman
Im have error with importing modules from next@babel….. dont know for you
@American Shorthair This is very weird every new project I initialize without coding anything and then build it throws error, but at some computers it does not
can you call the next info command and put it here for a working pc and a non working pc? maybe we can work out what the difference is
American ShorthairOP
alright
American ShorthairOP
@DirtyCajunRice | AppDir
I checked and only difference is node versions
American ShorthairOP
I installed same version but I get same error lol very weird
American ShorthairOP
Very helpful thanks guys! 🤦‍♂️
Masai Lion
I have the same issue