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

最后运行时还是报错

老师,最后运行时报错了是什么原因,报错代码如下:

ERROR in ./src/app.vue

Module build failed: SyntaxError: Unexpected token {

    at exports.runInThisContext (vm.js:53:16)

    at Module._compile (module.js:373:25)

    at Object.Module._extensions..js (module.js:416:10)

    at Module.load (module.js:343:32)

    at Function.Module._load (module.js:300:12)

    at Module.require (module.js:353:17)

    at require (internal/module.js:12:17)

    at Object.<anonymous> (E:\something\vue-test\node_modules\vue-loader\index.js:1:80)

    at Module._compile (module.js:409:26)

    at Object.Module._extensions..js (module.js:416:10)

    at Module.load (module.js:343:32)

    at Function.Module._load (module.js:300:12)

    at Module.require (module.js:353:17)

    at require (internal/module.js:12:17)

    at loadLoader (E:\something\vue-test\node_modules\webpack\node_modules\loader-runner\lib\loadLoader.js:13:17)

    at iteratePitchingLoaders (E:\something\vue-test\node_modules\webpack\node_modules\loader-runner\lib\LoaderRunner.js:169:2)

    at runLoaders (E:\something\vue-test\node_modules\webpack\node_modules\loader-runner\lib\LoaderRunner.js:362:2)

    at NormalModule.doBuild (E:\something\vue-test\node_modules\webpack\lib\NormalModule.js:182:3)

    at NormalModule.build (E:\something\vue-test\node_modules\webpack\lib\NormalModule.js:275:15)

    at Compilation.buildModule (E:\something\vue-test\node_modules\webpack\lib\Compilation.js:151:10)

    at factoryCallback (E:\something\vue-test\node_modules\webpack\lib\Compilation.js:344:12)

    at E:\something\vue-test\node_modules\webpack\lib\NormalModuleFactory.js:241:5

    at E:\something\vue-test\node_modules\webpack\lib\NormalModuleFactory.js:94:13

    at E:\something\vue-test\node_modules\webpack\node_modules\tapable\lib\Tapable.js:268:11

    at NormalModuleFactory.<anonymous> (E:\something\vue-test\node_modules\webpack\lib\CompatibilityPlugin.js:52:5)

    at NormalModuleFactory.applyPluginsAsyncWaterfall (E:\something\vue-test\node_modules\webpack\node_modules\tapable\lib\Tapable.js:272:13)

    at E:\something\vue-test\node_modules\webpack\lib\NormalModuleFactory.js:69:10

    at E:\something\vue-test\node_modules\webpack\lib\NormalModuleFactory.js:194:7

    at nextTickCallbackWith0Args (node.js:420:9)

    at process._tickCallback (node.js:349:13)

 @ ./src/index.js 2:0-27


正在回答

4 回答

明显的少了个括号啊

0 回复 有任何疑惑可以回复我~

语法错误

0 回复 有任何疑惑可以回复我~

少 了 {

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Vue+Webpack打造todo应用
  • 参与学习       84606    人
  • 解答问题       787    个

用前端最热门框架Vue+最火打包工具Webpack打造todo应用

进入课程

最后运行时还是报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信