Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.2k views
in Technique[技术] by (71.8m points)

vue项目运行后,报这些错,请问怎么解决啊?是不是哪里没有配置好吗?

vue项目运行后,报这些错,请问怎么解决啊?是不是哪里没有配置好吗?

如图:
image.png

`
WAIT Compiling... 3:45:44 ├F10: PM

98% after emitting CopyPlugin

WARNING Compiled with 1 warnings 3:45:44 ├F10: PM

Module Warning (from ./node_modules/eslint-loader/index.js):

D:WebstormProjectslmj_pc_frontsrcviewsaboutAbout.vue
37:52 warning Expected 1 line break after opening tag (<div>), but 2 line breaks found vue/multiline-html-element-content-newline
40:66 warning ':key' should be on a new line vue/max-attributes-per-line
41:34 warning ':alt' should be on a new line vue/max-attributes-per-line
41:50 warning Expected a space before '/>', but not found vue/html-closing-bracket-spacing
44:14 warning Expected 1 line break before closing tag (</div>), but 2 line breaks found vue/multiline-html-element-content-newline
53:39 warning Expected 1 line break after opening tag (<div>), but 2 line breaks found vue/multiline-html-element-content-newline
55:12 warning Expected 1 line break after opening tag (<p>), but no line breaks found vue/multiline-html-element-content-newline
57:29 warning Expected 1 line break before closing tag (</p>), but no line breaks found vue/multiline-html-element-content-newline
59:12 warning Expected 1 line break after opening tag (<p>), but no line breaks found vue/multiline-html-element-content-newline
68:35 warning 'alt' should be on a new line vue/max-attributes-per-line
68:47 warning Expected a space before '/>', but not found vue/html-closing-bracket-spacing
72:34 warning 'alt' should be on a new line vue/max-attributes-per-line
72:45 warning Expected a space before '/>', but not found vue/html-closing-bracket-spacing
78:13 warning Expected 1 line break before closing tag (</div>), but 2 line breaks found vue/multiline-html-element-content-newline

? 14 problems (0 errors, 14 warnings)
0 errors and 14 warnings potentially fixable with the --fix option.

You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use / eslint-disable / to ignore all warnings in a file.

App running at:

`


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

就是字面意思 eslint 校验错误

要不就关了校验,要不就对着一个个改呗


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...