assets/js/app.ed82413e.js from Terser
TypeError: Cannot read property 'minify' of undefined
at minify (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/terser-webpack-plugin/dist/minify.js:17
5:23)
at module.exports (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/terser-webpack-plugin/dist/work
er.js:13:40)
at handle (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/worker-farm/lib/child/index.js:44:8)
at process. (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/worker-farm/lib/child/inde
x.js:51:3)
at emitTwo (events.js:126:13)
at process.emit (events.js:214:7)
at emit (internal/child_process.js:772:12)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
error
assets/js/chunk-vendors.76ce3e5a.js from Terser
TypeError: Cannot read property 'minify' of undefined
at minify (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/terser-webpack-plugin/dist/minify.js:175:23)
at module.exports (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/terser-webpack-plugin/dist/worker.js:13:40)
at handle (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/worker-farm/lib/child/index.js:44:8)
at process. (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/worker-farm/lib/child/index.js:51:3)
at emitTwo (events.js:126:13)
at process.emit (events.js:214:7)
at emit (internal/child_process.js:772:12)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
ERROR Build failed with errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hello-world@0.1.0 build: vue-cli-service build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hello-world@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/becky/.npm/_logs/2019-02-02T17_11_37_442Z-debug.log
Rebeccas-MacBook-Air:wats4000-templates-and-data becky$
NOTE: npm run serve works correctly
I've been using version 3.3 successfully for a few weeks. Is there an easy way to upgrade to 3.4 if 3.3 is the problem?
I tried creating a new test project with no new configs and got the same build error (minify) today.
Version
3.4.0
Reproduction link
https://github.com/suwebdev/wats4000-templates-and-data/tree/cli3-migrate
Environment info
Steps to reproduce
npm run build
What is expected?
should build to my docs directory I have been using my config files successfully on previous days
What is actually happening?
build error: TypeError: Cannot read property 'minify' of undefined
Rebeccas-MacBook-Air:wats4000-templates-and-data becky$ npm run build
⠴ Building for production...
ERROR Failed to compile with 2 errors 09:11:37
error
assets/js/app.ed82413e.js from Terser TypeError: Cannot read property 'minify' of undefined at minify (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/terser-webpack-plugin/dist/minify.js:17 5:23) at module.exports (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/terser-webpack-plugin/dist/work er.js:13:40) at handle (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/worker-farm/lib/child/index.js:44:8) at process. (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/worker-farm/lib/child/inde
x.js:51:3)
at emitTwo (events.js:126:13)
at process.emit (events.js:214:7)
at emit (internal/child_process.js:772:12)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
error
assets/js/chunk-vendors.76ce3e5a.js from Terser TypeError: Cannot read property 'minify' of undefined at minify (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/terser-webpack-plugin/dist/minify.js:175:23) at module.exports (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/terser-webpack-plugin/dist/worker.js:13:40) at handle (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/worker-farm/lib/child/index.js:44:8) at process. (/Users/becky/projects/4000/wats4000-templates-and-data/node_modules/worker-farm/lib/child/index.js:51:3)
at emitTwo (events.js:126:13)
at process.emit (events.js:214:7)
at emit (internal/child_process.js:772:12)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
ERROR Build failed with errors. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! hello-world@0.1.0 build:
vue-cli-service build
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the hello-world@0.1.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /Users/becky/.npm/_logs/2019-02-02T17_11_37_442Z-debug.log Rebeccas-MacBook-Air:wats4000-templates-and-data becky$
NOTE:
npm run serve
works correctly I've been using version 3.3 successfully for a few weeks. Is there an easy way to upgrade to 3.4 if 3.3 is the problem?I tried creating a new test project with no new configs and got the same build error (minify) today.