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

使用 @tarojs/[email protected] 创建项目,使用默认模板,build:alipay 构建支付宝小程序后,在小程序开发工具中打开,报错 Failed to compile, error[Parse]: Unexpected token #15586

Open
functionwell opened this issue Apr 26, 2024 · 1 comment
Assignees
Labels
F-vue3 Framework - Vue 3 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x

Comments

@functionwell
Copy link

相关平台

支付宝小程序

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

复现步骤

  1. 使用 @tarojs/[email protected] 创建项目,选择默认模板
  2. 安装依赖成功后,执行 build:alipay 构建支付宝小程序
  3. 在支付宝小程序开发工具中打开 dist 目录,出现报错
  4. 报错信息: Failed to compile, error[Parse]: Unexpected token

期望结果

taro 能正常构建生产环境的支付宝小程序

实际结果

taro 构建的生产环境的支付宝小程序无法使用

环境信息

taro info

👽 Taro v3.6.27


  Taro CLI 3.6.27 environment info:
    System:
      OS: Windows 11 10.0.22631
    Binaries:
      Node: 16.20.2 - ~\AppData\Local\fnm_multishells\21832_1714100665263\node.EXE
      npm: 8.19.4 - ~\AppData\Local\fnm_multishells\21832_1714100665263\npm.CMD
    npmPackages:
      @tarojs/cli: 3.6.27 => 3.6.27
      @tarojs/components: 3.6.27 => 3.6.27
      @tarojs/helper: 3.6.27 => 3.6.27
      @tarojs/plugin-framework-vue3: 3.6.27 => 3.6.27
      @tarojs/plugin-platform-alipay: 3.6.27 => 3.6.27
      @tarojs/plugin-platform-h5: 3.6.27 => 3.6.27
      @tarojs/plugin-platform-jd: 3.6.27 => 3.6.27
      @tarojs/plugin-platform-qq: 3.6.27 => 3.6.27
      @tarojs/plugin-platform-swan: 3.6.27 => 3.6.27
      @tarojs/plugin-platform-tt: 3.6.27 => 3.6.27
      @tarojs/plugin-platform-weapp: 3.6.27 => 3.6.27
      @tarojs/runtime: 3.6.27 => 3.6.27
      @tarojs/shared: 3.6.27 => 3.6.27
      @tarojs/taro: 3.6.27 => 3.6.27
      @tarojs/taro-loader: 3.6.27 => 3.6.27
      @tarojs/webpack5-runner: 3.6.27 => 3.6.27
      babel-preset-taro: 3.6.27 => 3.6.27
      eslint-config-taro: 3.6.27 => 3.6.27
@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x labels Apr 26, 2024
@koppthe koppthe self-assigned this Apr 30, 2024
@qiaer
Copy link

qiaer commented May 17, 2024

+1
v3.6.28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

3 participants