taro 微信小程序插件开发偶现插件组件无法加载

cpjpxq1n  于 2023-02-04  发布在  其他
关注(0)|答案(1)|浏览(249)

相关平台

微信小程序

小程序基础库: 2.23.2
使用框架: React

复现步骤

从其他路由跳到嵌入插件的路由-》插件组件无法加载-》控制台报错-》
VM52 WAService.js:2 TypeError: Cannot read property 'route' of null
at c (plugin_taro.js:1)
at Ui.attached (plugin_taro.js:1)
at i.safeCallback (VM52 WAService.js:2)
at i.call (VM52 WAService.js:2)
at t (VM52 WAService.js:2)
at t (VM52 WAService.js:2)
at t (VM52 WAService.js:2)
at t (VM52 WAService.js:2)
at t (VM52 WAService.js:2)
at t (VM52 WAService.js:2)(env: Windows,mp,1.06.2206090; lib: 2.23.2)

点开taro.js:1显示
Could not load content for webpack:///plugin_taro.js (HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME)

期望结果

期望不报错,每次可以正常显示

实际结果

偶现报错,加载不了插件

环境信息

�👽 Taro v3.4

  Taro CLI 3.4.8 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.17.5 - D:\Program Files\node.EXE
      npm: 8.5.5 - D:\Program Files\npm.CMD

相关问题