请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

Syntax Error: TypeError: eslint.CLIEngine is not a constructor

Syntax Error: TypeError: eslint.CLIEngine is not a constructor
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.

[{
“resource”: “/Users/luyikun/Desktop/vue项目/imooc-admin/src/views/Home.vue”,
“owner”: “eslint”,
“severity”: 8,
“message”: “Parsing error: Must use import to load ES Module: /Users/luyikun/Desktop/vue项目/imooc-admin/node_modules/eslint/node_modules/eslint-scope/lib/definition.js\nrequire() of ES modules is not supported.\nrequire() of /Users/luyikun/Desktop/vue项目/imooc-admin/node_modules/eslint/node_modules/eslint-scope/lib/definition.js from /Users/luyikun/Desktop/vue项目/imooc-admin/node_modules/babel-eslint/lib/require-from-eslint.js is an ES module file as it is a .js file whose nearest parent package.json contains “type”: “module” which defines all .js files in that package scope as ES modules.\nInstead rename definition.js to end in .cjs, change the requiring code to use import(), or remove “type”: “module” from /Users/luyikun/Desktop/vue项目/imooc-admin/node_modules/eslint/node_modules/eslint-scope/package.json.”,
“source”: “eslint”,
“startLineNumber”: 1,
“startColumn”: 1,
“endLineNumber”: 1,
“endColumn”: 1
}]

正在回答 回答被采纳积分+3

1回答

Sunday 2022-02-09 11:54:53
0 回复 有任何疑惑可以回复我~
  • 提问者 慕粉0250428608 #1
    这是可以,那这种岂不是关闭了语法检测
    回复 有任何疑惑可以回复我~ 2022-02-09 16:03:15
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号