报错:
ERROR Invalid options in vue.config.js: "baseUrl" is not allowed
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rlh@0.1.0 serve: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the rlh@0.1.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\asd75\AppData\Roaming\npm-cache\_logs\2019-12-19T06_52_38_136Z-debug.log
代码:
这里面是一个坑
在vue-cli.3.3版本后 baseUrl被废除了,因此这边要写成 publicPath。
解决方式: