Next.js Discord

Discord Forum

How to debug "Cannot set properties of undefined (setting 'string')"?

Unanswered
American posted this in #help-forum
Open in Discord
AmericanOP
Hello!

How can I debug this error?

This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
TypeError: Cannot set properties of undefined (setting 'string')
    at Object.extend (/app/apps/nextjs/.next/server/chunks/2988.js:1:43708)


I only see it in my CI and deployed live. When I build and run locally I don't get the same errors. I build the same docker images when I try to replicate it. Is it possible to get source maps or something?

I do have serverSourceMaps: true, in my config

0 Replies