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

4.0.4版本按照官网文档初始化项目,增加project.alipay.json,执行npm run dev:alipay后在支付宝开发工具中无法预览 #16271

Open
Yomaris opened this issue Aug 8, 2024 · 2 comments
Labels
F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-4 Version - 4.x

Comments

@Yomaris
Copy link

Yomaris commented Aug 8, 2024

相关平台

支付宝小程序

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

复现步骤

按照官网文档初始化一个taro项目,react ts less 默认模版

期望结果

可以正常预览

实际结果

无法正常预览

环境信息

Taro CLI 4.0.4 environment info:
    System:
      OS: macOS 14.5
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.20.4 - ~/.volta/tools/image/node/18.20.4/bin/node
      Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn
      npm: 10.7.0 - ~/.volta/tools/image/node/18.20.4/bin/npm
    npmPackages:
      @tarojs/cli: ^4.0.4 => 4.0.4 
      @tarojs/components: 4.0.4 => 4.0.4 
      @tarojs/helper: 4.0.4 => 4.0.4 
      @tarojs/plugin-framework-react: 4.0.4 => 4.0.4 
      @tarojs/plugin-html: ^4.0.4 => 4.0.4 
      @tarojs/plugin-platform-alipay: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-h5: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-harmony-hybrid: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-jd: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-qq: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-swan: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-tt: 4.0.4 => 4.0.4 
      @tarojs/plugin-platform-weapp: 4.0.4 => 4.0.4 
      @tarojs/react: 4.0.4 => 4.0.4 
      @tarojs/runtime: 4.0.4 => 4.0.4 
      @tarojs/shared: 4.0.4 => 4.0.4 
      @tarojs/taro: 4.0.4 => 4.0.4 
      @tarojs/taro-loader: 4.0.4 => 4.0.4 
      @tarojs/webpack5-runner: 4.0.4 => 4.0.4 
      babel-preset-taro: 4.0.4 => 4.0.4 
      eslint-config-taro: 4.0.4 => 4.0.4 
      react: ^18.0.0 => 18.3.1 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-alipay Target - 编译到支付宝小程序 V-4 Version - 4.x labels Aug 8, 2024
@TheKonka
Copy link
Member

TheKonka commented Aug 9, 2024

https://opendocs.alipay.com/mini/03dbc3#transpile

image

mini.project.json 加下这个配置

This was referenced Aug 10, 2024
@artibix
Copy link

artibix commented Oct 21, 2024

4.0.6 版本根据官网文档构建微信小程序有同样的错误

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-4 Version - 4.x
Projects
None yet
Development

No branches or pull requests

3 participants