1. 程式人生 > >vue報錯:eslint-disable-next-line to ignore the next line.

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 '@/components/foo'


Vue.use(Router)
或者用//註釋空行
import foo from '@/components/foo'
//
//

Vue.use(Router)