vue-ssr-hmr icon indicating copy to clipboard operation
vue-ssr-hmr copied to clipboard

npm run build fails

Open fipp opened this issue 5 years ago • 1 comments

Hi! Wanted to know how webpack packaged things when running for production. So I tried npm run build which sets NODE_ENV=production before running webpack. But it fails. I cannot see straight away what the problem is:

ERROR in main.4d3a27cf.js from UglifyJs
RangeError: Maximum call stack size exceeded
    at Function.[Symbol.hasInstance] (<anonymous>)
...
ERROR: "build-client" exited with 2

Anyone knows what this might be?

fipp avatar Sep 16 '20 06:09 fipp

Didn't find the exact cause. But I learned that the minifyjs plugin used in the project is now deprecated, and when trying with the recommended successor it worked. So I created a PR for that.

fipp avatar Sep 16 '20 06:09 fipp