Skip to content

[Bug]: [WXML Runtime warning] ./base.wxml ./base.wxml:-1:-1:-1: Template ./base.wxml:tmpl_0_47 is being called recursively, will be stop. #17887

@TechQuery

Description

@TechQuery

请先确认

  • 我已搜索并确定这个提交不是重复的

相关平台

  • 所有小程序
  • 微信小程序
  • 支付宝小程序
  • 百度小程序
  • 字节跳动小程序
  • QQ 轻应用
  • 京东小程序
  • 快应用平台(QuickApp)
  • Web 平台(H5)
  • 移动端(React-Native)
  • 鸿蒙(harmony)

小程序基础库版本

3.4.3

使用框架

Preact

问题描述

分包后微信开发者工具控制台出现警告:

[WXML Runtime warning] ./base.wxml
./base.wxml:-1:-1:-1: Template `./base.wxml:tmpl_0_47` is being called recursively, will be stop.

并经常让 Windows 11 的系统任务栏重启,关闭微信开发者工具后系统恢复正常……

复现链接

(商业项目,不便公开)

复现步骤

  1. 小程序项目分包
  2. 执行 rm -rf .swc/ dist/ && taro build --watch --type weapp
  3. 用微信开发者工具打开项目 dist/ 目录

环境信息

👽 Taro v4.0.12


  Taro CLI 4.0.12 environment info:
    System:
      OS: Windows 11 10.0.22631
    Binaries:
      Node: 22.15.1 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
      npm: 10.9.2 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 4.0.12 => 4.0.12
      @tarojs/components: 4.0.12 => 4.0.12
      @tarojs/helper: 4.0.12 => 4.0.12
      @tarojs/plugin-framework-react: 4.0.12 => 4.0.12
      @tarojs/plugin-html: 4.0.12 => 4.0.12
      @tarojs/plugin-http: 4.0.12 => 4.0.12
      @tarojs/plugin-platform-alipay: 4.0.12 => 4.0.12
      @tarojs/plugin-platform-h5: 4.0.12 => 4.0.12
      @tarojs/plugin-platform-jd: 4.0.12 => 4.0.12
      @tarojs/plugin-platform-qq: 4.0.12 => 4.0.12
      @tarojs/plugin-platform-swan: 4.0.12 => 4.0.12
      @tarojs/plugin-platform-tt: 4.0.12 => 4.0.12
      @tarojs/plugin-platform-weapp: 4.0.12 => 4.0.12
      @tarojs/react: 4.0.12 => 4.0.12
      @tarojs/runtime: 4.0.12 => 4.0.12
      @tarojs/shared: 4.0.12 => 4.0.12
      @tarojs/taro: 4.0.12 => 4.0.12
      @tarojs/webpack5-runner: 4.0.12 => 4.0.12
      babel-preset-taro: 4.0.12 => 4.0.12

贡献代码

  • 我愿意修复这个错误

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions