JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

VueCLI报错:ERROR in [eslint]

发布时间 2023-05-27 15:11:40作者: 雨崩

配置好自己的组件后,完全没有任何错误,但是使用npm run serve时仍然报错

ERROR in [eslint]

 发现是eslint的错误,其实没有错,只不过Vue检测你的组件名称不符合就不编译了。

只需停掉eslint就行(一般开发期间停掉eslint可以保证自定义的变量、组件等也可以运行)

先找到vue.config.js--添加如下语句保存就可。

  lintOnSave:false  //关闭lint语法检查

 

    本栏目推荐文章
  • 基于VueCli自定义创建项目
  • A connection was successfully established with the server but then an error
  • vscode错误:Unable to connect to VS Code server: Error in request.
  • 【解决方案】Error running,Command line is too long
  • 【五期李伟平】CCF-A(AAAI'21)Game of Gradients: Mitigating Irrelevant Clients in Federated Learning
  • git bash报错fatal: detected dubious ownership in repository at的解决方法
  • 2024-01-13 Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. ==》引用了未使用的方法导致
  • fish和pacman:“error: Unable to read input file: 是一个目录”报错的处理
  • ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password'
  • mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; ERROR 1410 (42000): You are not allowed to create a user with GRANT
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们