新建vue项目出现error Unexpected ‘debugger‘ statement no-debugger


问题描述

vue项目中使用debugger | console 编译报错:

 ERROR  Failed to compile with 1 error                                                                                                                                         6:46:30 PM
 error  in ./src/App.vue
 
Module Error (from ./node_modules/eslint-loader/index.js):
 
C:\Users\Garson\Desktop\QianKun\qiankun-demo\pc-main\src\App.vue
  54:7  error  Unexpected 'debugger' statement  no-debugger
 
? 1 problem (1 error, 0 warnings)
 
 
 @ ./src/main.js 9:0-28 21:13-16
 @ multi (webpack)-dev-server/client?http://192.168.1.3:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

解决办法

1. 找到项目中的 package.json 文件
2. 找到 eslintConfig 配置参数,eslint规则配置
3. 在 eslintConfig 下的 rules 添加 “no-debugger”: “off”, “no-console”: “off”,

重启项目即可

 

 

 

版权声明:本文为YES开发框架网发布内容,转载请附上原文出处连接
YES开发框架
上一篇:VUE使用sass提示在sass文件中提示Syntax Error : this.getOptions is not a function
下一篇:Windows服务程序开发
评论列表

发表评论

评论内容
昵称:
关联文章

新建vue项目出现error Unexpecteddebuggerstatement no-debugger
PC端编译报错 Empty block statement no-empty
vue-cli4构建build时删除console和debugger
JocPlanTask 新建计划项目并添加引用
VUE Cli3项目添加LESS支持
VUE使用sass提示在sass文件中提示Syntax Error : this.getOptions is not a function
YESWin winform开发框架 新建一个业务模块项目
升级到Chromium 99版本后调试项目无法debugger定位到源代码
vue结合qiankun无法使用vue devtools调试子项目
Visual Studio 2019 远程调试工具(Remote Debugger
vue3+vist 打包空白
新建用户
debugger浏览器不会触发断点
vue项目使用axios发送请求让ajax请求头部携带cookie
vue vue-clie多环境配置
IIS URL重定向VUE配置
VUE qiankun
日志级别的选择:Debug、Info、Warn、Error还是Fatal
Python windows服务报错: Installing service ALicense Error installing service: 拒绝访问
微信支付提示 No_Auth 受理关系不存在

联系我们
联系电话:15090125178(微信同号)
电子邮箱:garson_zhang@163.com
站长微信二维码
微信二维码