找回密码
 注册
查看: 100|回复: 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
& [8 p! X" r7 H
4 l$ a* m. l+ m/ u ERROR  Failed to compile with 1 error                                                                                                                                                   4:25:52 ├F10: PM┤
! _+ j$ b# m9 D4 o% w error  in ./src/views/Home.vue, a1 n- V: E( D: m& d1 G7 C

5 x8 O' k7 C+ K! qModule Error (from ./node_modules/eslint-loader/index.js):! M  }4 Q; E; L4 i9 J  t. }

8 k6 l/ B  D6 \" `C:\Users\admin\Desktop\deskdirectory\trip-mobile2\src\views\Home.vue' `6 S/ x) M$ P& m2 w; M
  11:1  error  Expected space or tab after '//' in comment  spaced-comment
3 Z( ]& \5 P5 `2 g$ r; h: A- M6 f8 \+ x1 W" j8 |7 c5 d4 O
✖ 1 problem (1 error, 0 warnings)& G& Q6 d: A' w+ _
  1 error and 0 warnings potentially fixable with the `--fix` option./ L- T% v. P6 T1 I
% Y+ E2 h2 W9 f# M+ m  x
8 `8 T% e. R- @
@ ./src/router/index.js 3:0-37 8:13-17
$ f, J9 g4 x  Y4 B7 d6 T3 K @ ./src/main.js
* T0 R( A, m- _& F2 y9 l  M @ multi (webpack)-dev-server/client?http://192.168.16.26:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
% z, ]( u, k$ X
- U- X# R2 |6 @/ [查询了很久,终于知道原因在哪里了。
- g5 \9 E: C6 _3 Z2 A' L) m: pvue这个框架,对格式缩进很严格
2 {' G) P. p; V5 \// 注释,需要留意在//后一定要留一个空格。4 o, ~: ]! s0 l- s: j( B4 D) _( H

/ l1 ^4 t2 B- A9 E$ a
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-11 23:20 , Processed in 0.025143 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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