完整的报错信息如下
98% after emitting SizeLimitsPlugin
ERROR Failed to compile with 1 error 3:14:04 ├F10: PM┤
error in ./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=css&
Syntax Error: TypeError: Cannot read property 'unprefixed' of undefined
@ ./node_modules/vue-style-loader??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/vue-cli-plugin-quasar/lib/loader.auto-import.js?kebab!./node_modules/cache-loader/dist/cjs.js??ref--0-1!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=css& 4:14-439 15:3-20:5
16:22-447
@ ./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=css&
@ ./src/App.vue
@ ./src/main.ts
@ multi (webpack)-dev-server/client?http://10.89.13.164:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.ts
No type errors found
Version: typescript 4.3.5
Time: 5013ms
查看下你的package.json,如果也引用了 “postcss-rtl”: “^1.2.3”, 这个依赖,可能就是它关联依赖 “postcss” 版本问题引起的,
只需要将 postcss 版本号修正为上图所示,即可解决。
记得清理下包