为了账号安全,请及时绑定邮箱和手机立即绑定

npm run dev报错,不知道为什么不支持es6语法,前面安装步骤都没问题啊

npm run dev报错,不知道为什么不支持es6语法,前面安装步骤都没问题啊

Peggite 2017-03-24 16:27:57
查看完整描述

6 回答

?
Peggite

TA贡献2条经验 获得超0个赞

已解决

查看完整回答
反对 回复 2017-03-30
?
Peggite

TA贡献2条经验 获得超0个赞

//img1.sycdn.imooc.com//58db77f30001eb4c06610592.jpg这是错误提示。

查看完整回答
反对 回复 2017-03-29
?
NadiaSmile

TA贡献149条经验 获得超291个赞

报的什么错

查看完整回答
反对 回复 2017-03-25
  • Peggite
    Peggite
    ERROR Failed to compile with 2 errors 16:57:51 error in ./src/App.vue Syntax Error: Block-scoped declarations (let, const, function, class) not yet su pported outside strict mode @ ./~/vue-style-loader!./~/css-loader?{"minimize":false,"sourceMap":false}!./~/ vue-loader/lib/style-compiler?{"id":"data-v-5e67457b","scoped":false,"hasInlineC onfig":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue 4 :14-303 13:3-17:5 14:22-311 @ ./src/App.vue @ ./src/main.js @ multi ./build/dev-client ./src/main.js error in ./src/components/Hello.vue Syntax Error: Block-scoped declarations (let, const, function, class) not yet su pported outside strict mode @ ./~/vue-style-loader!./~/css-loader?{"minimize":false,"sourceMap":false}!./~/ vue-loader/lib/style-compiler?{"id":"data-v-15866c6f","scoped":true,"hasInlineCo nfig":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components /Hello.vue 4:14-313 13:3-17:5 14:22-321 @ ./src/components/Hello.vue @ ./src/router/index.js @ ./src/main.js @ multi ./build/dev-client ./src/main.js > Listening at http://localhost:8090
  • 6 回答
  • 0 关注
  • 4040 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信