Create-react-app: Cannot read property 'reset' of undefined

Created on 14 Aug 2017  路  2Comments  路  Source: facebook/create-react-app

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.

low (ignored issue template)

Most helpful comment

Hmm, not sure what happened, but removing node_modules and running npm install fixed it.

All 2 comments

Can you please provide a reproducible demo?

Hmm, not sure what happened, but removing node_modules and running npm install fixed it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Aranir picture Aranir  路  3Comments

rdamian3 picture rdamian3  路  3Comments

alleroux picture alleroux  路  3Comments

fson picture fson  路  3Comments

stopachka picture stopachka  路  3Comments