vue报错:eslint-disable-next-line to ignore the next line.

客官°小女子只卖身不卖艺 2022-05-26 01:23 612阅读 0赞

vue项目报错:

Use // eslint-disable-next-line to ignore the next line.

Use /* eslint-disable */ to ignore all warnings in a file.

今天编写vue项目路由的时候报了这个错,后来发觉是空多了一行。

比如这个,空多了一行就会报错。直接把行删除掉,最多只能空一行。

  1. import foo from '@/components/foo'
  2. Vue.use(Router)

或者用//注释空行

  1. import foo from '@/components/foo'
  2. //
  3. //
  4. Vue.use(Router)

发表评论

表情:
评论列表 (有 0 条评论,612人围观)

还没有评论,来说两句吧...

相关阅读