删除了ESLint.js文件之后 npm run serve 拨错

来源:1-2 工程目录代码简介及整理

weixin_慕村1291783

2020-12-30 15:10:27

# 具体遇到的问题

# 报错信息的截图

# 相关课程内容截图

# 尝试过的解决思路和结果

# 粘贴全部相关代码,切记添加代码注释(请勿截图)

ERROR  Failed to compile with 1 error                                                                          下午3:09:52

Syntax Error: Error: No ESLint configuration found in C:\Users\ivansuo\Desktop\jingdong\src.



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.


写回答

1回答

好帮手慕久久

2020-12-30

同学你好,建议不要把.eslintrc.js文件删除,该文件删除后,的确存在一些未知的报错。建议同学把该文件中的如下代码注释掉:

http://img.mukewang.com/climg/5fec48ae09f81a2104970171.jpg

这样就就不会报错了,同学试试。

祝学习愉快!

0

0 学习 · 15276 问题

查看课程