Vue新增路由报错Module Error (from ./node_modules/eslint-loader/index.js):

2020-10-24   阅读:5219   分类:前端    标签: Vue

Failed to compile.

./src/router/index.js

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

C:\Users\Hm\Desktop\vue\vue_shop\src\router\index.js

  18:4  error  Unexpected trailing comma  comma-dangle

✖ 1 problem (1 error, 0 warnings)

  1 error and 0 warnings potentially fixable with the `--fix` option.

image.png

出现这个问题是因为vue路由不能加,(逗号)

image.png

解决方法是,把数组最后一个逗号去掉。

【腾讯云】爆款云服务器首年95元,领折上折代金券最高再省1120元

‘简忆博客’微信公众号 扫码关注‘简忆博客’微信公众号,获取最新文章动态
转载:请说明文章出处“来源简忆博客”。http://www.tpxhm.com/fdetail/481.html

×
觉得文章有用就打赏一下文章作者
微信扫一扫打赏 微信扫一扫打赏
支付宝扫一扫打赏 支付宝扫一扫打赏

文章评论(0)

登录
简忆博客壁纸 头像

简忆博客
勤于学习,乐于分享。

置顶推荐

打赏本站

如果你觉得本站很棒,可以通过扫码支付打赏哦!
微信扫码:你说多少就多少~
微信扫码
支付宝扫码:你说多少就多少~
支付宝扫码
×