You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected to build to production the project with npm run build.
What is actually happening?
✔ Building for production...
ERROR TypeError: Class extends value undefined is not a constructor or null
TypeError: Class extends value undefined is not a constructor or null
at Object.<anonymous> (/Users/jdinartejesus/develop/athlead/webapp/node_modules/mini-css-extract-plugin/dist/CssDependency.js:12:46)
Things I already tried:
Step 1: Updated all dependencies and Vue-Cli to 4.5.0
Step 2: Looking into this issue 5030. I tried { "resolutions": { "@vue/cli-service/[email protected]" } } but no luck.
Step 3: Run build for development with npx vue-cli-service build --watch and this actually works.
PS: Running on serve npx vue-cli-service serve also works fine but not running to production.
The text was updated successfully, but these errors were encountered:
We need a reproduction repo to further look into the problem.
For now, I guess it could be related to this issue: webpack-contrib/mini-css-extract-plugin#3
Please check your underlying webpack version by running npm list webpack
Thanks for the tip @sodatea of using npm list webpack, that was the missing piece!
NOTE: If someone has the same issue, update all the dependencies that have Webpack >= 4.1.0. Then I had to remove my /node_modules and reinstall everything. Voilà!
Version
4.5.0
Environment info
Steps to reproduce
npx vue-cli-service build
What is expected?
Expected to build to production the project with
npm run build
.What is actually happening?
Things I already tried:
npx vue-cli-service build --watch
and this actually works.PS: Running on serve
npx vue-cli-service serve
also works fine but not running to production.The text was updated successfully, but these errors were encountered: