vue-cli-service build crash
See original GitHub issueVersion
4.4.4
Environment info
ubuntu18.04
Steps to reproduce
vue-cli-service build
What is expected?
build prod dist
What is actually happening?
ERROR TypeError: ErrorStackParser.parse is not a function
TypeError: ErrorStackParser.parse is not a function
at getOriginalErrorStack (/media/fanglei/mpca_wq_2T/workspace/recorder/DFDI-Console/node_modules/@soda/friendly-errors-webpack-plugin/src/core/extractWebpackError.js:31:29)
at extractError (/media/fanglei/mpca_wq_2T/workspace/recorder/DFDI-Console/node_modules/@soda/friendly-errors-webpack-plugin/src/core/extractWebpackError.js:22:20)
at Array.map (<anonymous>)
at processErrors (/media/fanglei/mpca_wq_2T/workspace/recorder/DFDI-Console/node_modules/@soda/friendly-errors-webpack-plugin/src/core/transformErrors.js:31:17)
at FriendlyErrorsWebpackPlugin.displayErrors (/media/fanglei/mpca_wq_2T/workspace/recorder/DFDI-Console/node_modules/@soda/friendly-errors-webpack-plugin/src/friendly-errors-plugin.js:97:29)
at doneFn (/media/fanglei/mpca_wq_2T/workspace/recorder/DFDI-Console/node_modules/@soda/friendly-errors-webpack-plugin/src/friendly-errors-plugin.js:57:14)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/media/fanglei/mpca_wq_2T/workspace/recorder/DFDI-Console/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:16:1)
at AsyncSeriesHook.lazyCompileHook (/media/fanglei/mpca_wq_2T/workspace/recorder/DFDI-Console/node_modules/tapable/lib/Hook.js:154:20)
at /media/fanglei/mpca_wq_2T/workspace/recorder/DFDI-Console/node_modules/webpack/lib/Compiler.js:304:22
at Compiler.emitRecords (/media/fanglei/mpca_wq_2T/workspace/recorder/DFDI-Console/node_modules/webpack/lib/Compiler.js:499:39)
at /media/fanglei/mpca_wq_2T/workspace/recorder/DFDI-Console/node_modules/webpack/lib/Compiler.js:298:10
at /media/fanglei/mpca_wq_2T/workspace/recorder/DFDI-Console/node_modules/webpack/lib/Compiler.js:485:14
at _next0 (eval at create (/media/fanglei/mpca_wq_2T/workspace/recorder/DFDI-Console/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:14:1)
at eval (eval at create (/media/fanglei/mpca_wq_2T/workspace/recorder/DFDI-Console/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:22:1)
at /media/fanglei/mpca_wq_2T/workspace/recorder/DFDI-Console/node_modules/copy-webpack-plugin/dist/index.js:115:7
at AsyncSeriesHook.eval [as callAsync] (eval at create (/media/fanglei/mpca_wq_2T/workspace/recorder/DFDI-Console/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:18:1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! dfdi-console@1.0.0 build:stage: vue-cli-service build --mode staging
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the dfdi-console@1.0.0 build:stage script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Issue Analytics
- State:
- Created a year ago
- Reactions:19
- Comments:16
Top GitHub Comments
Adding
"error-stack-parser": "2.0.6"
todevDependencies
inpackage.json
worked for me.I am having the same issue as above.