Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

独立分包,部分组件无法显示(Button),控制台提示 Template tmpl_1_12 not found. #12995

Closed
haixinn opened this issue Dec 18, 2022 · 5 comments · Fixed by #13013 or #13055
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Milestone

Comments

@haixinn
Copy link

haixinn commented Dec 18, 2022

相关平台

微信小程序

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

复现步骤

taro 仓库 example 示例独立分包,使用 taro 3.5.8 版本

Template `tmpl_1_12` not found.
  151 | 
  152 | <template name="tmpl_1_container">
> 153 |   <template is="{{xs.a(1, i.nn, l)}}" data="{{i:i,cid:1,l:xs.f(l,i.nn)}}" />
      |                ^
  154 | </template>
  155 | 
  156 | <template name="tmpl_2_0">

期望结果

组件正常渲染

实际结果

组件无法渲染

环境信息

👽 Taro v3.5.8


  Taro CLI 3.5.8 environment info:
    System:
      OS: macOS 10.15.6
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 14.18.2 - ~/.nvm/versions/node/v14.18.2/bin/node
      Yarn: 1.22.19 - /usr/local/bin/yarn
      npm: 7.24.2 - ~/.nvm/versions/node/v14.18.2/bin/npm
    npmPackages:
      @tarojs/cli: 3.5.8 => 3.5.8 
      @tarojs/components: 3.5.8 => 3.5.8 
      @tarojs/helper: 3.5.8 => 3.5.8 
      @tarojs/plugin-framework-react: 3.5.8 => 3.5.8 
      @tarojs/plugin-platform-weapp: 3.5.8 => 3.5.8 
      @tarojs/react: 3.5.8 => 3.5.8 
      @tarojs/router: 3.5.8 => 3.5.8 
      @tarojs/runtime: 3.5.8 => 3.5.8 
      @tarojs/shared: 3.5.8 => 3.5.8 
      @tarojs/taro: 3.5.8 => 3.5.8 
      @tarojs/taro-h5: 3.5.8 => 3.5.8 
      @tarojs/webpack5-runner: 3.5.8 => 3.5.8 
      babel-preset-taro: 3.5.8 => 3.5.8 
      eslint-config-taro: 3.5.8 => 3.5.8 
      react: ^18.0.0 => 18.2.0 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Dec 18, 2022
@zehuichan
Copy link

我也遇到过了,页面上写一个原生button他就好了

@oliver34
Copy link

你有解决吗?我也遇到了相同的问题

@Chen-jj
Copy link
Contributor

Chen-jj commented Dec 23, 2022

感谢反馈~

@mochen0505
Copy link

我也遇到过了,页面上写一个原生button他就好了

这个问题最后是咋解决的?

@zehuichan
Copy link

@mochen0505 新版本已经fix了,如果taro 3.5.8版本的话,需要在页面写一个原生button占位,等编译完了,删掉这个button即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
5 participants