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

Taro3.5.7 运行支付宝小程序应用,页面显示不出来 #12842

Closed
binz-i opened this issue Nov 17, 2022 · 1 comment
Closed

Taro3.5.7 运行支付宝小程序应用,页面显示不出来 #12842

binz-i opened this issue Nov 17, 2022 · 1 comment
Assignees
Labels
F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x

Comments

@binz-i
Copy link

binz-i commented Nov 17, 2022

相关平台

支付宝小程序

复现仓库

https://gitee.com/bin-gitee/taro-alipay-demo.git
小程序基础库: 2.7.21
使用框架: React

复现步骤

taro init 创建的空白项目中,直接运行npm run dev:alipay

期望结果

正常运行起来,能看到页面

实际结果

页面空白,无法看到页面元素

环境信息

  Taro CLI 3.5.7 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.20.0 - C:\Users\Windows 10\AppData\Local\nvs\default\node.EXE
      Yarn: 1.22.19 - C:\Users\Windows 10\AppData\Local\nvs\default\yarn.CMD
      npm: 6.14.17 - C:\Users\Windows 10\AppData\Local\nvs\default\npm.CMD
@taro-bot2 taro-bot2 bot added F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x labels Nov 17, 2022
@hopkins77
Copy link
Member

你好,具体原因可以在这里看到:#12134
解决方案1: 使用 Webpack4 开发,请使用 React17。
解决方案2: 使用 Webpack5 开发,可以使用React18。

@hopkins77 hopkins77 self-assigned this Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants