Next.js Discord

Discord Forum

Error when running app through `next start`, works fine with `next dev`

Unanswered
sonsorei posted this in #help-forum
Open in Discord
My app runs fine locally with next dev and it also builds with no errors. But when I try to run in on Vercel (or locally with next start) it gives this error:

5 Replies

 TypeError: Cannot destructure property 'name' of 'e' as it is undefined.
    at new y (C:\Users\wilso\projects\pay7\pay7-dashboard\.next\server\chunks\51.js:1:21982)
    at m (C:\Users\wilso\projects\pay7\pay7-dashboard\.next\server\chunks\51.js:1:10456)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async o (C:\Users\wilso\projects\pay7\pay7-dashboard\.next\server\chunks\51.js:25:19594)
    at async e.length.t (C:\Users\wilso\projects\pay7\pay7-dashboard\.next\server\chunks\51.js:25:21004)
    at async C:\Users\wilso\projects\pay7\pay7-dashboard\node_modules\next\dist\compiled\next-server\app-route.runtime.prod.js:6:42484
    at async eI.execute (C:\Users\wilso\projects\pay7\pay7-dashboard\node_modules\next\dist\compiled\next-server\app-route.runtime.prod.js:6:32486)
    at async eI.handle (C:\Users\wilso\projects\pay7\pay7-dashboard\node_modules\next\dist\compiled\next-server\app-route.runtime.prod.js:6:43737)
    at async doRender (C:\Users\wilso\projects\pay7\pay7-dashboard\node_modules\next\dist\server\base-server.js:1333:42)
    at async cacheEntry.responseCache.get.routeKind (C:\Users\wilso\projects\pay7\pay7-dashboard\node_modules\next\dist\server\base-server.js:1555:28)
Does anyone have at least some idea of where I can start to debug this problem?
e is clearly a minified name