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)

Logo

前往低代码交流专区

更多推荐