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

微信小程序中:无 store-product 和 store-home 组件,使用原生写法不生效 #17088

Open
hpfgit opened this issue Dec 27, 2024 · 4 comments

Comments

@hpfgit
Copy link

hpfgit commented Dec 27, 2024

相关平台

微信小程序

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

复现步骤

image

export default Index

期望结果

可正常展示 微信小店 组件

实际结果

现展示为空

环境信息

Taro CLI 4.0.8 environment info:
    System:
      OS: macOS 15.2
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 16.20.2 - ~/.nvm/versions/node/v16.20.2/bin/node
      npm: 8.19.4 - ~/.nvm/versions/node/v16.20.2/bin/npm
    npmPackages:
      @tarojs/cli: 3.4.6 => 3.4.6
      @tarojs/components: 3.4.6 => 3.4.6
      @tarojs/plugin-framework-react: 3.4.6 => 3.4.6
      @tarojs/plugin-inject: ^1.0.2 => 1.0.2
      @tarojs/react: 3.4.6 => 3.4.6
      @tarojs/runtime: 3.4.6 => 3.4.6
      @tarojs/taro: 3.4.6 => 3.4.6
      babel-preset-taro: 3.4.6 => 3.4.6
      eslint-config-taro: 3.4.6 => 3.4.6
      react: ^17.0.2 => 17.0.2
@hanjin001
Copy link

可以参考这篇文章,进行实现。写一个原生组件,再在 taro 中引入,这样就生效了。
Taro 组件内如何混合微信小程序原生写法组件

@TheKonka
Copy link
Member

taro-plugin-inject

@hpfgit
Copy link
Author

hpfgit commented Dec 28, 2024

可以参考这篇文章,进行实现。写一个原生组件,再在 taro 中引入,这样就生效了。 Taro 组件内如何混合微信小程序原生写法组件

这个我试的也是没有出来,😌 @hanjin001

@hanjin001
Copy link

那试试楼上推荐的这个吧~
taro-plugin-inject

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants