[SOLVED] @babel/types 7.13.12 makes everything go kablooey?
-
I was doing some basic updates and maintenance today for npm packages, and it seemed safe to update @babel/types 7.13.10 to 7.13.12, but it broke just about everything (in quasar files and my own). The error shown was:
ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema. - options has an unknown property 'onlyLocals'. These properties are valid: object { url?, import?, modules?, sourceMap?, importLoaders?, esModule? }
Which, after a search, I located in
@quasar/app/lib/webpack/inject.style-rules.js
Commenting out that line (43) allows my quasar dev server to run, but if that line is there, a ton of files throw errors. And if it is commented out, all css is completely broken.Any suggestions? I am running the latest quasar packages (1.15.7 and app 2.2.3)
-
Is this only happening for me or should this be reported as a bug in github?
-
Ok I think I found why this was happening. I apparently had a separately installed copy of vue-loader, which contained the update. Uninstalling that separate install (it was not needed) solves the problem.