找回密码
 注册
查看: 101|回复: 0

解决报错 11:1 error Expected space or tab after '//' in comment spaced-comment

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2025-6-5 02:00:01 | 显示全部楼层 |阅读模式
98% after emitting CopyPlugin
6 r$ X/ E/ I( E: l3 g: v5 _$ \# p7 p5 m" b7 \8 k' N1 ]
ERROR  Failed to compile with 1 error                                                                                                                                                   4:25:52 ├F10: PM┤
, [: ^& W0 }9 q1 ]" e error  in ./src/views/Home.vue6 u7 |/ p, P- Y: S, E
( z+ M" j' r* q- C
Module Error (from ./node_modules/eslint-loader/index.js):
& _& E% P# b8 G  V5 n, }6 d9 f6 ~# X: @% S
C:\Users\admin\Desktop\deskdirectory\trip-mobile2\src\views\Home.vue
" q  N: N; e+ [/ j, W" w  11:1  error  Expected space or tab after '//' in comment  spaced-comment+ A* U- ^4 @9 @+ N% Y# i

% J. k1 c) z& Q; K4 J$ y✖ 1 problem (1 error, 0 warnings)
. O* d% M6 o0 m& b  1 error and 0 warnings potentially fixable with the `--fix` option.! i6 X7 A" |% F! I! \6 j# k

# A2 d) |/ [  I4 W! N+ y2 T
' W2 W0 X6 h; _$ U2 |0 l @ ./src/router/index.js 3:0-37 8:13-173 @) H6 K5 G5 r( F
@ ./src/main.js
+ H  D9 Q3 K* }* A  | @ multi (webpack)-dev-server/client?http://192.168.16.26:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
8 O5 x- N4 y7 w8 I- Q9 P: t# s4 ~2 `8 b6 m) R0 l( s
查询了很久,终于知道原因在哪里了。6 |) S/ d" A+ Q0 z2 s
vue这个框架,对格式缩进很严格+ {0 y7 E3 I4 J1 i) y- P8 Z  d
// 注释,需要留意在//后一定要留一个空格。
% b1 Y* ?8 _( T) m# }4 R! {( t! P( _0 N0 \4 W! C
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:25 , Processed in 0.015064 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表