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

小程序自定义插件使用小程序导出方法问题 #8905

Open
sk894703472 opened this issue Mar 15, 2021 · 6 comments
Open

小程序自定义插件使用小程序导出方法问题 #8905

sk894703472 opened this issue Mar 15, 2021 · 6 comments
Labels
enhancement New feature or request F-react Framework - React P-2 Medium, minor/patch T-weapp Target - 编译到微信小程序 V-1 Version - 1.x

Comments

@sk894703472
Copy link

相关平台

微信小程序

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

复现步骤

无法导出方法供插件使用

期望结果

小程序可以导出方法,供插件直接调用,类似于原生小程序requireMiniProgram这个方法功能

实际结果

无法导出,配置参数报错

环境信息

👽 Taro v1.3.25

Debugger listening on ws://127.0.0.1:53961/c1e0dbd8-9a31-43e8-8fca-43b343b12e01
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.

  Taro CLI 1.3.25 environment info:
    System:
      OS: macOS 10.15.5
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 10.15.1 - ~/.nvm/versions/node/v10.15.1/bin/node
      Yarn: 1.21.1 - ~/.nvm/versions/node/v10.15.1/bin/yarn
      npm: 6.4.1 - ~/.nvm/versions/node/v10.15.1/bin/npm
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-1 Version - 1.x labels Mar 15, 2021
@sk894703472 sk894703472 changed the title 小程序自定义插件使用小程序导航问题 小程序自定义插件使用小程序导出方法问题 Mar 15, 2021
@yddydd
Copy link

yddydd commented Mar 16, 2021

+1 Taro有支持requirePlugin主体读插件导出的能力 还没有对应加上requireMiniProgram 主体导出能力给插件读

@sk894703472
Copy link
Author

@yddydd 麻烦问下有遇到需要类似场景,都是怎么解决的呀

@ct-0902
Copy link

ct-0902 commented Oct 19, 2022

+1 目前3.x版本还没requireMiniProgram主体导出方法给插件读的能力,希望能够尽快添加一个方法

@Chen-jj Chen-jj added the enhancement New feature or request label Oct 19, 2022
@vivialex
Copy link

+1

@vivialex
Copy link

@Chen-jj 这里有预期支持吗?

@lajidemo
Copy link

+1,而且连 wx.requireMiniProgram 都是 undefined
image

@Chen-jj Chen-jj added the P-2 Medium, minor/patch label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request F-react Framework - React P-2 Medium, minor/patch T-weapp Target - 编译到微信小程序 V-1 Version - 1.x
Projects
Status: Todo
Development

No branches or pull requests

6 participants