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

【微信小程序独立分包】Taro使用原生小程序组件报错 Component is not found in path #14848

Closed
yh3232692 opened this issue Nov 17, 2023 · 1 comment · Fixed by #14934 or #15004
Labels
F-vue2 Framework - Vue 2 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@yh3232692
Copy link

相关平台

微信小程序

复现仓库

https://gitee.com/yaoheng11/taro-sub-demo.git
小程序基础库: 3.2.1
使用框架: Vue 2

复现步骤

  1. 开发工具添加编译模式 输入这个链接 testSub/subIndex1/index 即可复现

期望结果

原生组件正常加载

实际结果

运行报错 Component is not found in path

环境信息

Taro CLI 3.6.19 environment info:
    System:
      OS: macOS 11.4
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.21.3 - ~/.nvm/versions/node/v14.21.3/bin/node
      npm: 6.14.18 - ~/.nvm/versions/node/v14.21.3/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.19 => 3.6.19 
      @tarojs/components: 3.6.19 => 3.6.19 
      @tarojs/helper: 3.6.19 => 3.6.19 
      @tarojs/plugin-framework-vue2: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-alipay: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-h5: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-jd: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-qq: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-swan: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-tt: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-weapp: 3.6.19 => 3.6.19 
      @tarojs/runtime: 3.6.19 => 3.6.19 
      @tarojs/shared: 3.6.19 => 3.6.19 
      @tarojs/taro: 3.6.19 => 3.6.19 
      @tarojs/taro-loader: 3.6.19 => 3.6.19 
      @tarojs/webpack5-runner: 3.6.19 => 3.6.19 
      babel-preset-taro: 3.6.19 => 3.6.19 
      eslint-config-taro: 3.6.19 => 3.6.19 

补充信息

  1. taro项目内加载了一个,小程序原生业务组件库的npm包。普通分包场景下可以正常使用。现在开启独立分包后,运行报错 Component is not found in path 。
  2. taro页面 taro组件的组合,独立分包可以正常运行
@taro-bot2 taro-bot2 bot added F-vue2 Framework - Vue 2 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Nov 17, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in Mini Program Dec 18, 2023
@felix9ia
Copy link

独立分包目前还是有问题 , #17275

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue2 Framework - Vue 2 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Archived in project
2 participants