1***@qq.com
1***@qq.com
  • 发布:2022-05-20 09:21
  • 更新:2022-05-20 09:34
  • 阅读:183

uni-cloud

分类:uniCloud

09:17:45.188 Module build failed (from ./node_modules/babel-loader/lib/index.js):
09:17:45.188 语法错误: C:\Users\liu'guang'kang\Documents\HBuilderProjects\uni-cloud\pages.json: Unexpected token, expected "," (24:67)
09:17:45.194 22 | Vue.component('pages-cloudFunction-cloudFunction', resolve=>{
09:17:45.194 23 | const component = {
09:17:45.200 > 24 | component:require.ensure([], () => resolve(require('C:/Users/liu'guang'kang/Documents/HBuilderProjects/uni-cloud/pages/cloudFunction/cloudFunction.vue')), 'pages-cloudFunction-cloudFunction'),
09:17:45.200 | ^
09:17:45.205 25 | delay:uniConfig['async'].delay,
09:17:45.206 26 | timeout:
uniConfig['async'].timeout
09:17:45.210 27 | }
09:17:45.211 at pages.json:1

2022-05-20 09:21 负责人:无 分享
已邀请:
mikeshi

mikeshi

多半是你在pages.json中,列表的最后一项后面还加了一个逗号。

  • 1***@qq.com (作者)

    这个pages.json是uni-cloud 自动创建的

    2022-05-20 10:00

  • 1***@qq.com (作者)

    我没有改变它

    2022-05-20 10:00

  • 1***@qq.com (作者)

    {

    "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages

    {

    "path": "pages/index/index",

    "style": {

    "navigationBarTitleText": "uni-app"

    }

    }

    ],

    "globalStyle": {

    "navigationBarTextStyle": "black",

    "navigationBarTitleText": "uni-app",

    "navigationBarBackgroundColor": "#F8F8F8",

    "backgroundColor": "#F8F8F8"

    }

    }

    2022-05-20 10:01

  • mikeshi

    回复 1***@qq.com: 你把//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages这个注释去了试试,一般来说,json是不可以写注释的。

    2022-05-20 10:19

该问题目前已经被锁定, 无法添加新回复