Minified React error #152
Hi,
I came across this issue when I was try to build my app with react-helmet in it. https://reactjs.org/docs/error-decoder.html?invariant=152&args[]=t
It works fine on development mode but when i try to build the app and minified it didn't work.
My enviroment: webpack: 4.17.1 react: 16.4.1 react-helmet: 5.2.0
My minimizer:
minimizer: [
new UglifyJsPlugin({
uglifyOptions: {
compress: {
warnings: false, // Suppress uglification warnings
pure_getters: true,
unsafe: true,
unsafe_comps: true,
},
output: {
comments: false,
},
exclude: [/\.min\.js$/gi] // skip pre-minified libs
}
})
],
Thank you for your help
Need more information to analyze your issue.. Do you have a reproducible repo?
Hi, well unfortunately I have this repo on gitlab as private project.
@1aGh Hi Michal, Was issue fixed? I meet this error also only in production mode but not in development mode, I am using webpack 4 also.