宝哥哥会飞
宝哥哥会飞
  • 发布:2024-02-19 10:54
  • 更新:2024-02-19 11:00
  • 阅读:163

过完年回来运行项目报工具类错误

分类:HBuilderX

10:51:42.223 Module build failed (from ./node_modules/@dcloudio/webpack-uni-pages-loader/lib/index.js):
10:51:42.234 TypeError: Cannot read properties of null (reading 'id')
10:51:42.234 at /Applications/HBuilderX 3.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-pages-loader/lib/platforms/mp.js:174:24
10:51:42.241 at Array.forEach (<anonymous>)
10:51:42.241 at getCondition (/Applications/HBuilderX 3.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-pages-loader/lib/platforms/mp.js:173:22)
10:51:42.245 at parseCondition (/Applications/HBuilderX 3.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-pages-loader/lib/platforms/mp.js:111:23)
10:51:42.254 at /Applications/HBuilderX 3.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-pages-loader/lib/platforms/mp.js:329:5
10:51:42.259 at /Applications/HBuilderX 3.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-pages-loader/lib/platforms/app-plus/index.js:125:23
10:51:42.259 at Object.<anonymous> (/Applications/HBuilderX 3.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-pages-loader/lib/index-new.js:188:71)
10:51:42.263 at Object.<anonymous> (/Applications/HBuilderX 3.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-pages-loader/lib/index.js:58:35)
10:51:42.388 Error: getaddrinfo ENOTFOUND 96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com
10:51:42.394 at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
10:51:42.394 errno: -3008,
10:51:42.399 code: 'ENOTFOUND',
10:51:42.399 syscall: 'getaddrinfo',
10:51:42.404 hostname: '96f0e031-f37a-48ef-84c7-2023f6360c0a.bspapp.com'
10:51:42.410 }
10:51:42.839 Module build failed (from ./node_modules/@dcloudio/webpack-uni-pages-loader/lib/index.js):

2024-02-19 10:54 负责人:无 分享
已邀请:
宝哥哥会飞

宝哥哥会飞 (作者)

解决了,是hbx在我点了运行当前页面为启动页后在pages.json中 condition自动加了个null

要回复问题请先登录注册