Module Error (from ./node_modules/eslint-loader/index.js):
C:\Users\Administrator\Desktop\项目实战day1\code\vue_shop\src\router.js
7:1 error Expected indentation of 2 spaces but found 4 indent
8:3 error Newline required at end of file but not found eol-last
✖ 2 problems (2 errors, 0 warnings)
2 errors and 0 warnings potentially fixable with the --fix option.

解决方法:
1.在项目中找到eslintrac.js
在这里插入图片描述
2.注释掉标注的代码即可,亲试有效
在这里插入图片描述

Logo

前往低代码交流专区

更多推荐