下面是运行的命令:

cnpm run dev

WARNING  Compiled with 1 warnings                                                              下午7:19:23
  ✘  http://eslint.org/docs/rules/semi                         Extra semicolon                                
  src/App.vue:20:26
  import axios from 'axios';
                            ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 2 spaces but found 4   
  src/App.vue:24:1
      data() {
   ^

✘  http://eslint.org/docs/rules/space-before-function-paren  Missing space before function parentheses      
  src/App.vue:24:9
      data() {
           ^

✘  http://eslint.org/docs/rules/padded-blocks                Block must not be padded by blank lines        
  src/App.vue:24:12
      data() {
              ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 4 spaces but found 8   
  src/App.vue:26:1
          return {
   ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 6 spaces but found 12  
  src/App.vue:28:1
              level: '',
   ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 6 spaces but found 12  
  src/App.vue:30:1
              post: '',
   ^

✘  http://eslint.org/docs/rules/comma-dangle                 Unexpected trailing comma                      
  src/App.vue:30:21
              post: '',
                       ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 4 spaces but found 8   
  src/App.vue:32:1
          }
   ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 2 spaces but found 4   
  src/App.vue:34:1
      },
   ^

✘  http://eslint.org/docs/rules/padded-blocks                Block must not be padded by blank lines        
  src/App.vue:34:5
      },
       ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 2 spaces but found 4   
  src/App.vue:36:1
      mounted() {
   ^

✘  http://eslint.org/docs/rules/space-before-function-paren  Missing space before function parentheses      
  src/App.vue:36:12
      mounted() {
              ^

✘  http://eslint.org/docs/rules/padded-blocks                Block must not be padded by blank lines        
  src/App.vue:36:15
      mounted() {
                 ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 4 spaces but found 8   
  src/App.vue:38:1
          const url = `http://127.0.0.1:10072/todo/api/v1.0/tasks`
   ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 4 spaces but found 8   
  src/App.vue:40:1
          axios.get(url).then(response => {
   ^

✘  http://eslint.org/docs/rules/padded-blocks                Block must not be padded by blank lines        
  src/App.vue:40:41
          axios.get(url).then(response => {
                                           ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 6 spaces but found 12  
  src/App.vue:42:1
              const result = response.data
   ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 6 spaces but found 12  
  src/App.vue:44:1
              const repoRepo = result.jobs[0]
   ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 6 spaces but found 12  
  src/App.vue:46:1
              this.post = repoRepo.post
   ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 6 spaces but found 12  
  src/App.vue:48:1
              this.level = repoRepo.level
   ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 4 spaces but found 8   
  src/App.vue:50:1
          }).catch(error => {
   ^

✘  http://eslint.org/docs/rules/padded-blocks                Block must not be padded by blank lines        
  src/App.vue:50:9
          }).catch(error => {
           ^

✘  http://eslint.org/docs/rules/handle-callback-err          Expected error to be handled                   
  src/App.vue:50:18
          }).catch(error => {
                    ^

✘  http://eslint.org/docs/rules/padded-blocks                Block must not be padded by blank lines        
  src/App.vue:50:27
          }).catch(error => {
                             ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 6 spaces but found 12  
  src/App.vue:52:1
              alert('请求失败了')
   ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 4 spaces but found 8   
  src/App.vue:54:1
          })
   ^

✘  http://eslint.org/docs/rules/padded-blocks                Block must not be padded by blank lines        
  src/App.vue:54:9
          })
           ^

✘  http://eslint.org/docs/rules/indent                       Expected indentation of 2 spaces but found 4   
  src/App.vue:56:1
      }
   ^

✘  http://eslint.org/docs/rules/padded-blocks                Block must not be padded by blank lines        
  src/App.vue:56:5
      }
       ^

✘ 30 problems (30 errors, 0 warnings)

Errors:
  17  http://eslint.org/docs/rules/indent
   8  http://eslint.org/docs/rules/padded-blocks
   2  http://eslint.org/docs/rules/space-before-function-paren
   1  http://eslint.org/docs/rules/handle-callback-err
   1  http://eslint.org/docs/rules/comma-dangle
   1  http://eslint.org/docs/rules/semi

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.

#------------------------------------------------------------------------------------

怎么解决呢?

注意不要盯着最后几行汇总信息,而是仔细阅读前面的报错信息来解决问题.

App.vue文件報錯相关推荐

  1. App.vue文件本质上也是js文件(javascript文件)

    App.vue文件本质上也是js文件(javascript文件) App.vue描述的是一个组件(在这里扮演着一个大的组件而已) 组件的结构 组件的样式 组件的脚本 组件的结构:<templat ...

  2. vue概述、vue文件特点、vue核心思想、双向数据流、单文件、启动一个vue项目、声明式渲染

    vue介绍: Vue:当前较火的MVVM框架,轻量.简介.高效.组件化.数据驱动,模块和渲染函数的弹性选择,简单的语法及项目创建,渲染速度极快,基于Virtual Dom,利用虚拟DOM实现快速渲染: ...

  3. 前端开发~uni-app ·[项目-仿糗事百科] 学习笔记 ·004【App.vue引入全局公共样式】

    注:前言.目录见 https://god-excious.blog.csdn.net/article/details/105312456 文章目录 [009]引入官方CSS样式库 [010]引入第三方 ...

  4. 解决Cannot find module ‘./App.vue‘ or its corresponding type declaration 的问题

    报错原因:vite使用的是ts,ts不识别.vue 后缀的文件 具体问题如下:在main.ts中导入App.vue文件报该错误 解决方法:在vite项目的根 vite-env.d.ts 文件中添加下面 ...

  5. 单文件组件.vue 文件

    vuejs 单文件组件.vue 文件 vuejs 自定义了一种.vue文件,可以把html, css, js 写到一个文件中,从而实现了对一个组件的封装, 一个.vue 文件就是一个单独的组件.由于. ...

  6. uniapp的目录结构反思与整理 app.vue【base】pages.json【配置】main.json【框架入口文件】

    App.vue 作用是   全局样式+全局的生命周期  相当于PHP里面的BaseControlller文件   [Base] pages.json作用是   配置路由+导航条+选项卡+tabbar  ...

  7. vue项目中主要文件的加载顺序(index.html、App.vue、main.js)

    先后顺序: index.html > App.vue的export外的js代码 > main.js > App.vue的export里面的js代码 > Index.vue的ex ...

  8. Vue app.js文件过大,带宽占用过大,优化方案(持续优化)

    Vue app.js文件过大,带宽占用过大,优化方案 前言 最近我的网站在使用的过程中发现加载缓慢问题,在没有缓存的情况下页面打开速度需要五秒,这对于用户体验来说是不友好的.通过查找网上的方案 我实验 ...

  9. oracle11g ora00838,管理oracle11g內存設置 解決ora-02097 ora-00838 ora-00845報錯問題

    Oracle對內存的管理的 優化從未間斷,從8i到11g不斷地提出新的管理概念.每個本版都對內存管理進行了簡化:1.8i->9i:PGA的自動管理;2.9i->10g:SGA的自動管理;3 ...

最新文章

  1. 6 OC中 isa 和 superclass 的总结
  2. matlab蚁群算法 降维,基于蚁群算法的路由问题研究
  3. 昨天还在for循环里写加号拼接字符串的那个同事,今天已经不在了
  4. python PyQt5 QtCore.QPointF类、QPointF类与QPoint类区别
  5. php怎么实现md5加密,php如何进行md5加密
  6. [spring boot] ------ 总结1
  7. html文件查找关键词,批处理查找文件关键字下一行内容
  8. 【java】测试dubbo业务
  9. 在windows server 2008 R2上运行disk cleanup
  10. 论文画图软件(转载)
  11. java ee 思维导图
  12. 毕业设计 嵌入式 智能温控风扇系统
  13. HDU 5025 Saving Tang Monk 【状态压缩BFS】
  14. Uber H3 index 地图索引思考
  15. 计算机考研854题型,2017年中央民族大学854计算机基础综合考研大纲
  16. mysql重启数据库实例命令_mysql重启数据库实例命令
  17. 仿中华英才网城市选择
  18. 8.9 五色定理(Heawood 1890)
  19. python 中list+=[1]与list =list+[1]
  20. 人能不能向计算机一样输入知识,电视机能不能做为计算机的显示器来使用

热门文章

  1. Deep learning:五(regularized线性回归练习)
  2. 详解Paint的各种set方法
  3. iOS Xcode4.2代码管理工具的使用
  4. Handbook of Constraints Programming——Chapter 22 Constraint-Based Scheduling and Planning
  5. 进销存设计之——单据的数据表结构设计
  6. Jquery实现 全选反选
  7. 函数没有“as”子句;假定返回类型为 object。_TypeScript笔记(一)类型amp;接口...
  8. LeetCode-38 报数
  9. 抛物线运动JavaScript实现
  10. 性能优化之图片懒加载