Next.js Discord

Discord Forum

App crashes at runtime with error: Uncaught (in promise) ReferenceError: packageName is not defined

Unanswered
Somali posted this in #help-forum
Open in Discord
SomaliOP
I have upgraded my nextjs app to latest next 15.3.3 and react 19.0.0. While everything works well on local, app builds and runs as expected, in production, app crashes with (difficult to debug error) message:

"Uncaught (in promise) ReferenceError: packageName is not defined"

The stack trace is obfuscated. And as I said above, thinks work on local so I can't really reproduce this issue. Any help would be greatly appreciated.

0 Replies