Replace Autoprefixer browsers option to Browserslist config.
Use browserslist key in package.json or .browserslistrc file.
Using browsers option can cause errors. Browserslist config
can be used for Babel, Autoprefixer, postcss-normalize and other tools.
If you really need to use option, rename it to overrideBrowserslist.
Learn more at:
https://github.com/browserslist/browserslist#readme
https://twitter.com/browserslist
一开始问题只是新增的表单显示无依赖问题,在网上找教程尝试后,发现去掉新表单,项目也运行不了了。
后来发现是因为执行npm audit fix --force命令,自动把所安装的包升级到最新的版本,但有些版本是不匹配的,导致项目无法运行。后来把备份里package.json的版本替换掉就正常了。