Skip to content

[Bug]: 采用new-blended编译模式,入口文件componentDidShow生命周期不会执行 #17853

@chenjiepds

Description

@chenjiepds

请先确认

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

相关平台

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

小程序基础库版本

3.8.9

使用框架

React

问题描述

采用混合编译模式(new-blended),入口文件app.js中生命周期componentDidShow生命周期不会执行。

复现链接

https://github.com/NervJS/taro/tree/main/examples/new-blended

复现步骤

运行之后,componentDidShow中日志未打印

环境信息

Taro CLI 3.6.13 environment info:
    System:
      OS: macOS 15.1
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 14.18.0 - /usr/local/bin/node
      Yarn: 1.22.18 - /usr/local/bin/yarn
      npm: 8.19.2 - /usr/local/bin/npm
    npmPackages:
      @tarojs/api: 3.6.13 => 3.6.13 
      @tarojs/components: 3.6.13 => 3.6.13 
      @tarojs/plugin-framework-react: 3.6.13 => 3.6.13 
      @tarojs/plugin-platform-alipay: 3.6.13 => 3.6.13 
      @tarojs/plugin-platform-weapp: 3.6.13 => 3.6.13 
      @tarojs/react: 3.6.13 => 3.6.13 
      @tarojs/router: 3.6.13 => 3.6.13 
      @tarojs/taro-h5: 3.6.13 => 3.6.13 
      @tarojs/taro-loader: 3.6.13 => 3.6.13 
      babel-preset-taro: 3.6.13 => 3.6.13 
      eslint-config-taro: 3.5.7 => 3.5.7 
      react: 18.0.0 => 18.0.0 
      taro-ui: 3.0.0-alpha.3 => 3.0.0-alpha.3 
    npmGlobalPackages:
      typescript: 5.5.4

贡献代码

  • 我愿意修复这个错误

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