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 组件,使用原生写法不生效 #16671

Open
ZJL8 opened this issue Oct 9, 2024 · 8 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@ZJL8
Copy link

ZJL8 commented Oct 9, 2024

相关平台

微信小程序

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

复现步骤

代码:
image

控制台有警告:
image

期望结果

可正常展示 微信小店 组件

实际结果

现展示为空

环境信息

Taro CLI 3.6.22 environment info:
    System:
      OS: macOS 14.6.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 16.20.2 - ~/.nvm/versions/node/v16.20.2/bin/node
      Yarn: 1.22.22 - ~/.nvm/versions/node/v16.20.2/bin/yarn
      npm: 8.19.4 - ~/.nvm/versions/node/v16.20.2/bin/npm
    npmPackages:
      @tarojs/cli: ^3.6.22 => 3.6.22 
      @tarojs/components: 3.6.7 => 3.6.7 
      @tarojs/mini-runner: 3.6.7 => 3.6.7 
      @tarojs/plugin-framework-react: ^3.6.7 => 3.6.7 
      @tarojs/plugin-html: ^3.6.7 => 3.6.7 
      @tarojs/plugin-mini-ci: ^3.6.22 => 3.6.22 
      @tarojs/react: 3.6.7 => 3.6.7 
      @tarojs/runtime: 3.6.7 => 3.6.7 
      @tarojs/taro: 3.6.7 => 3.6.7 
      @tarojs/webpack-runner: 3.6.7 => 3.6.7 
      react: ^18.2.0 => 18.2.0 

@ZJL8 ZJL8 changed the title 微信小程序中无 store-product 和 store-home 组件,使用原生写法不生效 微信小程序中:无 store-product 和 store-home 组件,使用原生写法不生效 Oct 11, 2024
This was referenced Oct 12, 2024
@TheKonka TheKonka added V-3 Version - 3.x F-react Framework - React T-weapp Target - 编译到微信小程序 labels Oct 23, 2024
@maintao
Copy link

maintao commented Nov 18, 2024

同样的问题,希望尽快支持微信小程序的 store-home 组件

@xshwy
Copy link

xshwy commented Nov 26, 2024

很苦恼,测试了很久一直没效果,搜了一下发现原来还不支持…

@huahaichuan
Copy link

image taro支持原生页面,现在能通过原生页面展示

@xshwy
Copy link

xshwy commented Nov 27, 2024

image taro支持原生页面,现在能通过原生页面展示

我是想在现有的页面上增加产品的展示,使用的react开发的,麻烦问一下这样可以集成进去吗?

@maintao
Copy link

maintao commented Nov 27, 2024

我现在临时解决方法是用原生写,编译完把 dist 目录下这个页面替换成原生的,期待 Taro 官方尽快支持

@huahaichuan
Copy link

我是想在现有的页面上增加产品的展示,使用的react开发的,麻烦问一下这样可以集成进去吗?

试试原生组件 也是支持的。我没试过,只有试一试。

@xshwy
Copy link

xshwy commented Nov 29, 2024

我是想在现有的页面上增加产品的展示,使用的react开发的,麻烦问一下这样可以集成进去吗?

试试原生组件 也是支持的。我没试过,只有试一试。

在JSX中使用原生组件,大部分生效应该也是Taro团队做了支持,小商店的这个确实是不支持,插入完全没显示……

@yao206cc
Copy link

我是想在现有的页面上增加产品的展示,使用的react开发的,麻烦问一下这样可以集成进去吗?

试试原生组件 也是支持的。我没试过,只有试一试。

我尝试通过组件引入 在构建后 有错误提示
Taro Version: 3.6.14
image
代码结构
image

但神奇的事情是在--watch的模式下 运行时成功的。
不知道哪里出了问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Status: Todo
Development

No branches or pull requests

6 participants