Next.js Discord

Discord Forum

How to debug minified react error in production?

Unanswered
Willow Ptarmigan posted this in #help-forum
Open in Discord
Willow PtarmiganOP
I have a minified react error that only appears in production:
Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=%5Bobject%20Promise%5D
it looks like there is some issue with a promise not fullfilled in one of the components. I can't reproduce this locally though. Is there a way how i can see where the error is coming from in prod ?

this is my nextConfig:
```const nextConfig = {
distDir: './build',
productionBrowserSourceMaps: true,
swcMinify: false,
compress: false,
reactStrictMode: true,
output: 'export',
webpack: (config) => {
return {...config,
optimization: {
minimize: false,
minimizer:[],
},
};
}
};

1 Reply

Northeast Congo Lion
I am starting to recevice this error too after upgrade my repo any luck on how to fix?