为了账号安全,请及时绑定邮箱和手机立即绑定

运行报错.

D:\test1>npm run dev


> test1@1.0.0 dev D:\test1

> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js


 14% building modules 37/43 modules 6 active ...ndex=0!D:\test1\src\components\A1.vue{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.

 95% emitting


 WARNING  Compiled with 2 warnings                                                                     4:52:33 ├F10: PM┤



  ✘  http://eslint.org/docs/rules/no-trailing-spaces  Trailing spaces not allowed

  src\components\A.vue:7:1


   ^



✘ 1 problem (1 error, 0 warnings)



Errors:

  1  http://eslint.org/docs/rules/no-trailing-spaces



  ✘  http://eslint.org/docs/rules/no-unused-vars  'HelloWorld' is defined but never used

  src\router\index.js:3:8

  import HelloWorld from '@/components/HelloWorld'

          ^


  ✘  http://eslint.org/docs/rules/spaced-comment  Expected space or tab after '//' in comment

  src\router\index.js:13:16

      path: '/', //路径

                  ^


  ✘  http://eslint.org/docs/rules/spaced-comment  Expected space or tab after '//' in comment

  src\router\index.js:15:23

      component: First, //引用文件名

                         ^


  ✘  http://eslint.org/docs/rules/indent          Expected indentation of 6 spaces but found 8

  src\router\index.js:17:1

          path: '/A',

   ^


  ✘  http://eslint.org/docs/rules/indent          Expected indentation of 6 spaces but found 8

  src\router\index.js:18:1

          name: 'A',

   ^


  ✘  http://eslint.org/docs/rules/indent          Expected indentation of 6 spaces but found 8

  src\router\index.js:19:1

          component: A,

   ^


  ✘  http://eslint.org/docs/rules/comma-dangle    Unexpected trailing comma

  src\router\index.js:19:21

          component: A,

                       ^


  ✘  http://eslint.org/docs/rules/indent          Expected indentation of 4 spaces but found 6

  src\router\index.js:20:1

        },

   ^


  ✘  http://eslint.org/docs/rules/indent          Expected indentation of 4 spaces but found 6

  src\router\index.js:21:1

        {

   ^


  ✘  http://eslint.org/docs/rules/indent          Expected indentation of 6 spaces but found 8

  src\router\index.js:22:1

          path: '/B',

   ^


  ✘  http://eslint.org/docs/rules/indent          Expected indentation of 6 spaces but found 8

  src\router\index.js:23:1

          name: 'B',

   ^


  ✘  http://eslint.org/docs/rules/indent          Expected indentation of 6 spaces but found 8

  src\router\index.js:24:1

          component: B

   ^


  ✘  http://eslint.org/docs/rules/indent          Expected indentation of 4 spaces but found 6

  src\router\index.js:25:1

        },

   ^


  ✘  http://eslint.org/docs/rules/indent          Expected indentation of 4 spaces but found 6

  src\router\index.js:26:1

        {

   ^


  ✘  http://eslint.org/docs/rules/indent          Expected indentation of 6 spaces but found 8

  src\router\index.js:27:1

          path: '/A1',

   ^


  ✘  http://eslint.org/docs/rules/indent          Expected indentation of 6 spaces but found 8

  src\router\index.js:28:1

          name: 'A1',

   ^


  ✘  http://eslint.org/docs/rules/indent          Expected indentation of 6 spaces but found 8

  src\router\index.js:29:1

          component: A1,

   ^


  ✘  http://eslint.org/docs/rules/comma-dangle    Unexpected trailing comma

  src\router\index.js:29:22

          component: A1,

                        ^


  ✘  http://eslint.org/docs/rules/indent          Expected indentation of 4 spaces but found 6

  src\router\index.js:30:1

        }

   ^



✘ 19 problems (19 errors, 0 warnings)



Errors:

  14  http://eslint.org/docs/rules/indent

   2  http://eslint.org/docs/rules/spaced-comment

   2  http://eslint.org/docs/rules/comma-dangle

   1  http://eslint.org/docs/rules/no-unused-vars

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 回答

Expected indentation of 4 spaces but found 6这种就是空格打多了,在给出提示的那一行删掉空格就行,提示里30:1的这种形式指的是30行1列的位置,列的位置差不多找就能找到。


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

运行报错.

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信