"Module build failed (from ./node_modules/babel-loader/lib/index.js):\n21:15:54.299 语法错误: F:\HBUIDER\hbuiderprojects\demo1\pages\index\index.vue: Unexpected token, expected "," (19:12)\n21:15:54.303 17 | return {\n21:15:54.303 18 | obj:{name:"aa",age:22},\n21:15:54.307 > 19 | good[\n21:15:54.311 | ^\n21:15:54.314 20 | {\n21:15:54.317 21 | title:"aaa",\n21:15:54.321 22 | age:"999"什么意思,怎么解决内容:这个错误是因为在你的代码中,在good数组中的一个元素后面缺少了一个逗号。你需要在good数组中的元素之间加上逗号,例如:\n\n\n\ngood: [\n {\n title: "aaa",\n age: "999"\n },\n {\n title: "bbb",\n age: "888"\n }\n],\n\n\n添加逗号后,你的代码应该可以正常编译。

Vue.js 语法错误: Unexpected token, expected

原文地址: https://www.cveoy.top/t/topic/p1nx 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录