vue 项目启动报错:Syntax Error: Unexpected token 的解决方法
vue项目根目录新增配置文件 .babelrc
{
"presets": [
"stage-2"
]
}
修复好 Syntax Error: Unexpected token
启动发现又报如下问题
Failed to compile with 9 errors
Module build failed: Error: No PostCSS Config found in: D:\project\
根目录新建postcss.config.js
/**
* Created by liweiliang 406320591@QQ.com on 2022/11/1 14:10.
*/
module.exports = {
plugins: {
autoprefixer: {browsers: 'last 5 version'}
}
}
版权声明:本文为李维亮博主的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:http://www.liweiliang.com/1121.html
- 上一篇: vue-pdf使用demo
- 下一篇: vue国际化配置
评论已关闭