Next.js Discord

Discord Forum

Server crashes in production after few days (a[c] is not a function)

Unanswered
Silver posted this in #help-forum
Open in Discord
SilverOP
Hello Ive been facing this Issue for quite a while now, the production server randomly crashes the error message that is thrown is "TypeError a[c] is not a function" and its coming from next-server production files seems like. here is the full message:

TypeError: a[C] is not a function at e (---/.next/server/chunks/538.js:9:148504) at O (---/.next/server/chunks/538.js:9:18624) at eh (---/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:134786) at e (---/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:137671) at ek (---/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:138145) at Array.toJSON (---/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135755) at stringify (<anonymous>) at eR (---/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142219) at eE (---/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:142698) at Timeout._onTimeout (---/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:135475) { digest: '1147893119' }
Here are the details about the server:

node: v20.10.0
"next": "^14.2.3",
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy


The only relevant issue I saw when I did some searching was related to Clarity, but Im not using it in my project, so I dont know exactly what is causing this issue because it happens randomly. So will appreciate any help if anyone has an idea where to start to debug this.

1 Reply

SilverOP
Anyone?