相关平台
微信小程序
小程序基础库: 3.3.2
使用框架: React
复现步骤
添加@visactor/taro-vchart后,
第一次运行项目不报错并且能正常展示图表,
再次运行后就报错了
报错信息:
[WXML Runtime warning] ./base.wxml
Template tmpl_0_15
not found.
315 |
316 |
317 |
| ^
318 |
319 |
320 |
期望结果
正常使用图表组件,不报错
实际结果
使用图表组件报错
环境信息
Taro CLI 3.6.19 environment info:
System:
OS: macOS 13.0
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 16.20.1 - ~/.nvm/versions/node/v16.20.1/bin/node
Yarn: 1.22.18 - /usr/local/bin/yarn
npm: 8.19.4 - ~/.nvm/versions/node/v16.20.1/bin/npm
npmPackages:
@tarojs/cli: 3.6.8 => 3.6.8
@tarojs/components: 3.6.8 => 3.6.8
@tarojs/helper: 3.6.8 => 3.6.8
@tarojs/plugin-framework-react: 3.6.8 => 3.6.8
@tarojs/plugin-platform-alipay: 3.6.8 => 3.6.8
@tarojs/plugin-platform-h5: 3.6.8 => 3.6.8
@tarojs/plugin-platform-jd: 3.6.8 => 3.6.8
@tarojs/plugin-platform-qq: 3.6.8 => 3.6.8
@tarojs/plugin-platform-swan: 3.6.8 => 3.6.8
@tarojs/plugin-platform-tt: 3.6.8 => 3.6.8
@tarojs/plugin-platform-weapp: 3.6.8 => 3.6.8
@tarojs/react: 3.6.8 => 3.6.8
@tarojs/runtime: 3.6.8 => 3.6.8
@tarojs/shared: 3.6.8 => 3.6.8
@tarojs/taro: 3.6.8 => 3.6.8
@tarojs/taro-loader: 3.6.8 => 3.6.8
@tarojs/webpack5-runner: 3.6.8 => 3.6.8
babel-preset-taro: 3.6.8 => 3.6.8
eslint-config-taro: 3.6.8 => 3.6.8
react: ^18.0.0 => 18.2.0
1条答案
按热度按时间rsl1atfo1#
base.wxml 中 tmpl_0_15 的 template 是 canvas,dev编译时没有生成这个占位模版,build编译时正常;
可以添加一个 <Canvas style={{ display: "none" }} /> 解决。