收藏
回答

小程序在多端应用模式加载报错,小程序模式是正常的?

报了3个错,首页的地步tab加载出来了,页面内容没和导航栏加载出来。用的是 TDesign

TypeError: Cannot read property 'getComponentSpace' of null
    at a (<anonymous>:1:252208)
    at t.setGlassEaselAdapter (<anonymous>:1:1185775)
    at r (<anonymous>:1:125913)
    at t.<anonymous> (<anonymous>:1:131969)
    at Array.<anonymous> (<anonymous>:1:138084)
    at Object.subscribeHandler (<anonymous>:1:107352)
    at Object.publish (<anonymous>:1:107739)
    at <anonymous>:1:134461
    at Object.n [as cb] (<anonymous>:1:95194)
    at U._privEmit (<anonymous>:1:87589)(env: Windows,wxext14566970e7e9f62,2.01.2508072; lib: 3.6.5-39)


remote-debug start error TypeError: Cannot read property 'libStyleScope' of null
    at Md.init (WARemoteDebugForLib3.js?t=wxext14566970e7e9f62&s=1755003178930&v=3.6.5-39:1)
    at WARemoteDebugForLib3.js?t=wxext14566970e7e9f62&s=1755003178930&v=3.6.5-39:1
    at Generator.next (<anonymous>)
    at t (WARemoteDebugForLib3.js?t=wxext14566970e7e9f62&s=1755003178930&v=3.6.5-39:1)
    at a (WARemoteDebugForLib3.js?t=wxext14566970e7e9f62&s=1755003178930&v=3.6.5-39:1)(env: Windows,wxext14566970e7e9f62,2.01.2508072; lib: 3.6.5-39)


routeDone with a webviewId 40 that is not the current page(env: Windows,wxext14566970e7e9f62,2.01.2508072; lib: 3.6.5-39)


截图如下:

回答关注问题邀请回答
收藏

1 个回答

  • 豪杰
    豪杰
    2025-08-12

    刚才直接在右上角从小程序模式切换到多端应用模式发生了上面的报错,后来我尝试 构建npm 后重新启动了开发者工具,就正常了。开发者工具版本号 2.01.2508072 Windows 64

    2025-08-12
    有用
    回复
登录 后发表内容