Next.js Discord

Discord Forum

Can't build to production after upgrading from 13.5.3

Unanswered
Fire ant posted this in #help-forum
Open in Discord
Avatar
Fire antOP
I got this error log and it looks like chunk generated files:
> next build

 ✓ Creating an optimized production build
 ✓ Compiled successfully
 ✓ Linting and checking validity of types
 ✓ Collecting page data
   Generating static pages (8/13)  [==  ]
RangeError: Maximum call stack size exceeded
    at P (D:\xampp\htdocs\nextjs\.next\server\chunks\139.js:5:299967)
    at l (D:\xampp\htdocs\nextjs\.next\server\chunks\139.js:5:295085)
    at D:\xampp\htdocs\nextjs\.next\server\chunks\139.js:5:296307
    at Array.forEach (<anonymous>)
    at D:\xampp\htdocs\nextjs\.next\server\chunks\139.js:5:296280
    at Array.forEach (<anonymous>)
    at a (D:\xampp\htdocs\nextjs\.next\server\chunks\139.js:5:296100)
    at D:\xampp\htdocs\nextjs\.next\server\chunks\139.js:5:296364
    at Array.forEach (<anonymous>)
    at l (D:\xampp\htdocs\nextjs\.next\server\chunks\139.js:5:296057)
> Export encountered errors on following paths:
        /_not-found
        /page: /
        /result/page: /result
        /test/page: /test
 ELIFECYCLE  Command failed with exit code 1.

I'm using next 13.5.4, using below this version i succed builded it, using latest version i got this error and i don't know where to fix this.

Other version works fine.

2 Replies

Avatar
Fire antOP
Full log
Image
Avatar
Hong
@Fire ant Try to remove the code and build until you find where the errors were. Or if your project is on GitHub, share it with us, and we can help you.