Failed to minify the bundle. Error: static/js/main.1869b185.js from UglifyJs
TypeError: Cannot read property 'reset' of undefined
at Array.forEach (<anonymous>)
at compiler.run (/project/node_modules/react-scripts/scripts/build.js:130:23)
at emitRecords.err (/project/node_modules/webpack/lib/Compiler.js:269:13)
at Compiler.emitRecords (/project/node_modules/webpack/lib/Compiler.js:375:38)
at emitAssets.err (/project/node_modules/webpack/lib/Compiler.js:262:10)
at applyPluginsAsyncSeries1.err (/project/node_modules/webpack/lib/Compiler.js:368:12)
at next (/project/node_modules/tapable/lib/Tapable.js:218:11)
at Compiler.compiler.plugin (/project/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
at next (/project/node_modules/tapable/lib/Tapable.js:220:14)
at /project/node_modules/sw-precache-webpack-plugin/lib/index.js:98:18
at <anonymous>
This happens when I add a function with async/await.
Can you please provide a reproducible demo?
Hmm, not sure what happened, but removing node_modules and running npm install fixed it.
Most helpful comment
Hmm, not sure what happened, but removing node_modules and running
npm installfixed it.