vue 13:9 error Newline required at end of file but not found eol-last ✖ 1 problem (1 error, 0 w

錯誤信息

Failed to compile.

./src/components/login.vue
Module Error (from ./node_modules/eslint-loader/index.js):
C:\Users\admin\Desktop\vue_element\vue_project\src\components\login.vue
  13:9  error  Newline required at end of file but not found  eol-last

✖ 1 problem (1 error, 0 warnings)
  1 error and 0 warnings potentially fixable with the `--fix` option.

解決辦法

其實上面已經指名了出現錯誤的地方你login.vue文件的第13行第9個字符左右報錯,
大概意思是,需要一個換行符,你沒有,添加以下就行了,
其實這一類的錯誤還有缺了個逗號,需要使用單引號不能使用雙引號等,
他都會提示的很精確,只要你細心分析

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章