收藏
回答

app.json 配置报错Expecting 'STRING','}', got INVALID ?

"tabBar": {
    "list":[{
​        "pagePath": "pages/index/index",
​        "text": "首页",
​        "iconPath":"image/首页.png",
​        "selectedIconPath":"image/3.1首页-选中.png"
​      },
      {
  ​       "pagePath": "pages/index/index",
  ​       "text": "登陆",
  ​       "iconPath":"image/未点击登陆.png",
  ​       "selectedIconPath":"image/点击登陆.png"
  ​    },
      {
    ​     "pagePath": "pages/index/index",
    ​     "text": "设置",
    ​     "iconPath":"image/设置.png",
         "selectedIconPath":"image/138设置、系统设置、功能设置、属性.png"
    ​  }
    ],
    "selectedColor":"#D81E06"
  },


报错:

[ miniprogram/app.json.json 文件错误] miniprogram/app.json: miniprogram/app.json
Expecting 'STRING','}', got INVALID
  13 |   },
  14 |   "tabBar": {
> 15 |     "list":[{
     |            ^
  16 | ​        "pagePath": "pages/index/index",
  17 | ​        "text": "首页",
  18 | ​        "iconPath":"image/首页.png",(env: macOS,mp,1.06.2306020; lib: 2.32.1)
回答关注问题邀请回答
收藏

1 个回答

  • Demons
    Demons
    2023-06-10

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2023-06-10
    有用
    回复
登录 后发表内容