vue-cli: vue-cli-service build crash

Version

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.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 19
  • Comments: 16

Most upvoted comments

Adding "error-stack-parser": "2.0.6" to devDependencies in package.json worked for me.

I am having the same issue as above.

Ah, yup, me too. Experienced first during a CI/CD run on w/Github -> Azure. All builds are failing across the board.

This fixed it for me - It’s a temporary workaround. https://github.com/stacktracejs/error-stack-parser/issues/80

If you are using yarn also add:

"resolutions": {
  "error-stack-parser": "2.0.6"
}

to your package.json