npm run serve报错
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-dbWhy you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
INFO Starting development server...
98% after emitting CopyPluginERROR Failed to compile with 1 error 14:21:42
Syntax Error: TypeError: Cannot read properties of undefined (reading 'parseComponent')
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
我的解决办法是:
npm upgrade --latest vue-template-compiler
安装完后,再运行npm run serve就正常了