vue报错:eslint-disable-next-line to ignore the next line.
vue项目报错:Use // eslint-disable-next-line to ignore the next line.Use /* eslint-disable */ to ignore all warnings in a file.今天编写vue项目路由的时候报了这个错,后来发觉是空多了一行。比如这个,空多了一行就会报错。直接把行删除掉,最多只能空一行。import foo from
·
vue项目报错:
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
今天编写vue项目路由的时候报了这个错,后来发觉是空多了一行。
比如这个,空多了一行就会报错。直接把行删除掉,最多只能空一行。
import foo from '@/components/foo'
Vue.use(Router)
或者用//注释空行
import foo from '@/components/foo'
//
//
Vue.use(Router)
更多推荐
已为社区贡献15条内容
所有评论(0)