NervJS / taro

开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native 等应用。 https://taro.zone/
https://docs.taro.zone/
Other
35.08k stars 4.75k forks source link

preact 3.6.30 引入rc-field-form库报错 Template `tmpl_0_24` not found. 页面不渲染 #15815

Open pbpoon opened 1 month ago

pbpoon commented 1 month ago

相关平台

微信小程序 报警告 WXMLRT_$gwx:./base.wxml:template:27:20: Template tmpl_0_24 not found. (anonymous) @ .._src_dom_root.ts:184 setTimeout (async) performUpdate @ .._src_dom_root.ts:91 (anonymous) @ .._src_dsl_common.ts:159 (anonymous) @ ._nodemodules.pnpm_preact@10.22.0_node_modules_preact_dist_preact.module.js:2 (anonymous) @ ._nodemodules.pnpm_preact@10.22.0_node_modules_preact_dist_preact.module.js:2 j @ ._nodemodules.pnpm_preact@10.22.0_node_modules_preact_dist_preact.module.js:2 P @ ._nodemodules.pnpm_preact@10.22.0_node_modules_preact_dist_preact.module.js:2 Promise.then (async) M @ ._nodemodules.pnpm_preact@10.22.0_node_modules_preact_dist_preact.module.js:2 define.push../node_modules/.pnpm/preact@10.22.0/node_modules/preact/dist/preact.module.js.b.forceUpdate @ ._nodemodules.pnpm_preact@10.22.0_node_modules_preact_dist_preact.module.js:2 mount @ .._src_runtime_connect.ts:231 mount @ .._src_runtime_connect.ts:276 mount @ .._src_dsl_common.ts:151 (anonymous) @ .._src_dsl_common.ts:168 [WXML Runtime warning] ./base.wxml Template tmpl_0_24 not found. 25 | 26 |

27 |

小程序基础库: 3.4.5 使用框架: Preact

复现步骤

之前还可以,今天突然就报警告了

期望结果

正常显示rc-field-form的内容

实际结果

没有显示

环境信息


  Taro CLI 3.6.30 environment info:
    System:
      OS: macOS 14.4.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
      Yarn: 1.22.18 - /opt/local/bin/yarn
      npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.30 => 3.6.30
      @tarojs/components: 3.6.30 => 3.6.30
      @tarojs/helper: 3.6.30 => 3.6.30
      @tarojs/plugin-framework-react: 3.6.30 => 3.6.30
      @tarojs/plugin-platform-alipay: 3.6.30 => 3.6.30
      @tarojs/plugin-platform-h5: 3.6.30 => 3.6.30
      @tarojs/plugin-platform-jd: 3.6.30 => 3.6.30
      @tarojs/plugin-platform-qq: 3.6.30 => 3.6.30
      @tarojs/plugin-platform-swan: 3.6.30 => 3.6.30
      @tarojs/plugin-platform-tt: 3.6.30 => 3.6.30
      @tarojs/plugin-platform-weapp: 3.6.30 => 3.6.30
      @tarojs/runtime: 3.6.30 => 3.6.30
      @tarojs/shared: 3.6.30 => 3.6.30
      @tarojs/taro: 3.6.30 => 3.6.30
      @tarojs/taro-loader: 3.6.30 => 3.6.30
      @tarojs/webpack5-runner: 3.6.30 => 3.6.30
      babel-preset-taro: 3.6.30 => 3.6.30
      eslint-config-taro: 3.6.30 => 3.6.30
pbpoon commented 1 month ago

刚刚发生神奇的一幕。我吧原来应用rc-field-form的页面,的import,改为@taro/components之后save(在-watch状态)重新打包项目,页面正常显示,当然rc-field-form功能不能用。之后再吧import 改回rc-field-form就没有了这个警告。功能完全恢复正常了

pbpoon commented 1 month ago

本地开发是没有问题了,但build生产环境又提示WXMLRT_$gwx:./base.wxml:template:27:20: Template tmpl_0_24 not found.怎么解决啊