driftPang
driftPang
  • 发布:2024-10-22 14:29
  • 更新:2024-10-22 14:31
  • 阅读:125

运行到微信小程序能行 运行到抖音就报这个问题

分类:HBuilderX

Error: pages.json解析失败,不符合 json 规范
14:24:34.167 Unexpected token } in JSON at position 197
14:24:34.173 at getJson (E:\software\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-cli-shared\lib\json.js:35:11)
14:24:34.184 at getPagesJson (E:\software\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\uni-cli-shared\lib\pages.js:39:27)
14:24:34.190 at Object.<anonymous> (E:\software\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\lib\env.js:236:22)
14:24:34.201 at Module._compile (node:internal/modules/cjs/loader:1364:14)
14:24:34.207 at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
14:24:34.218 at Module.load (node:internal/modules/cjs/loader:1203:32)
14:24:34.224 at Module._load (node:internal/modules/cjs/loader:1019:12)
14:24:34.234 at Module.require (node:internal/modules/cjs/loader:1231:19)
14:24:34.241 at require (node:internal/modules/helpers:177:18)
14:24:34.252 at Object.<anonymous> (E:\software\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-uni\index.js:21:5)
14:24:34.258 Error: getaddrinfo ENOTFOUND 96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com
14:24:34.268 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
14:24:34.275 errno: -3008,
14:24:34.285 code: 'ENOTFOUND',
14:24:34.292 syscall: 'getaddrinfo',
14:24:34.301 hostname: '96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com'
14:24:34.310 }

2024-10-22 14:29 负责人:无 分享
已邀请:
DCloud_UNI_yuhe

DCloud_UNI_yuhe

条件编译时少了个符号吧,看你使用了头条的编译条件,这与能不能运行到微信小程序上无关

  • driftPang (作者)

    page.json 不都一样么 头条和微信的

    2024-10-22 14:33

  • driftPang (作者)

    解决了 逗号放错位置了 谢谢

    2024-10-22 14:37

要回复问题请先登录注册