引用库 "taro-iconfont-cli": "^3.3.0", 生成图标 报错 Template tmpl_0_iconfont not found

q0qdq0h2  于 2个月前  发布在  其他
关注(0)|答案(4)|浏览(50)

相关平台

微信小程序

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

复现步骤

按提示 下载库 taro-iconfont-cli 引用报错

期望结果

不报错 能正常使用iconfont图标

实际结果

[WXML Runtime warning] ./base.wxml
Template tmpl_0_iconfont not found.
279 |
280 |
281 |
| ^
282 |
283 |
284 |

环境信息

👽 Taro v3.6.8

  Taro CLI 3.6.8 environment info:
    System:
      OS: Windows Server 2016 10.0.14393
    Binaries:
      Node: 16.20.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
      npm: 8.19.4 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 3.6.7 => 3.6.7
      @tarojs/components: 3.6.7 => 3.6.7
      @tarojs/helper: 3.6.7 => 3.6.7
      @tarojs/plugin-framework-react: 3.6.7 => 3.6.7
      @tarojs/plugin-html: ^3.5.12 => 3.6.8
      @tarojs/plugin-platform-alipay: 3.6.7 => 3.6.7
      @tarojs/plugin-platform-h5: 3.6.7 => 3.6.7
      @tarojs/plugin-platform-jd: 3.6.7 => 3.6.7
      @tarojs/plugin-platform-qq: 3.6.7 => 3.6.7
      @tarojs/plugin-platform-swan: 3.6.7 => 3.6.7
      @tarojs/plugin-platform-tt: 3.6.7 => 3.6.7
      @tarojs/plugin-platform-weapp: 3.6.7 => 3.6.7
      @tarojs/react: 3.6.7 => 3.6.7
      @tarojs/runtime: 3.6.7 => 3.6.7
      @tarojs/shared: 3.6.7 => 3.6.7
      @tarojs/taro: 3.6.7 => 3.6.7
      @tarojs/taro-loader: 3.6.7 => 3.6.7
      @tarojs/webpack5-runner: 3.6.7 => 3.6.7
      babel-preset-taro: 3.6.7 => 3.6.7
      eslint-config-taro: 3.6.7 => 3.6.7
      react: ^18.0.0 => 18.2.0
      taro-ui: ^3.1.0-beta.2 => 3.1.0-beta.5
puruo6ea

puruo6ea1#

这个 问题 怎么 解决 各位大佬 有人 帮忙看下么 谢谢~~~~

gijlo24d

gijlo24d3#

把 @tarojs/plugin-html 这个插件用上试试

dtcbnfnu

dtcbnfnu4#

[WXML Runtime warning] ./base.wxml
Template tmpl_0_xxx not found.

这个问题在多个版本,反复地出现,无论是 react/vue 。无论是否使用 cache/prebundle。搜索一下便知,有大量的相关 issues。

官方多次声称修复,并每次都要求提供repo,可这个问题时有时无的出现,根本没法稳定的复现。

相关问题