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

支付宝dev正常,build正常,build后开发工具报错 #14868

Closed
lyz1948 opened this issue Nov 23, 2023 · 4 comments
Closed

支付宝dev正常,build正常,build后开发工具报错 #14868

lyz1948 opened this issue Nov 23, 2023 · 4 comments
Labels
F-vue3 Framework - Vue 3 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x

Comments

@lyz1948
Copy link

lyz1948 commented Nov 23, 2023

相关平台

支付宝小程序

复现仓库

https://gitee.com/lyz1948/taro-alipay-ts.git
小程序基础库: 2.8.25
使用框架: Vue 3

复现步骤

  1. npm run build:alipay
  2. 打开编辑器就能看到错误

期望结果

正常运行

实际结果

无法运行

环境信息

 Taro v3.6.19


  Taro CLI 3.6.19 environment info:
    System:
      OS: Windows 11 10.0.22631
    Binaries:
      Node: 16.10.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.21 - C:\Program Files\nodejs\yarn.CMD
      npm: 7.24.0 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 3.6.19 => 3.6.19
      @tarojs/components: 3.6.19 => 3.6.19
      @tarojs/helper: 3.6.19 => 3.6.19
      @tarojs/plugin-framework-vue3: 3.6.19 => 3.6.19
      @tarojs/plugin-platform-alipay: 3.6.19 => 3.6.19
      @tarojs/plugin-platform-h5: 3.6.19 => 3.6.19
      @tarojs/plugin-platform-jd: 3.6.19 => 3.6.19
      @tarojs/plugin-platform-qq: 3.6.19 => 3.6.19
      @tarojs/plugin-platform-swan: 3.6.19 => 3.6.19
      @tarojs/plugin-platform-tt: 3.6.19 => 3.6.19
      @tarojs/plugin-platform-weapp: 3.6.19 => 3.6.19
      @tarojs/runtime: 3.6.19 => 3.6.19
      @tarojs/shared: 3.6.19 => 3.6.19
      @tarojs/taro: 3.6.19 => 3.6.19
      @tarojs/taro-loader: 3.6.19 => 3.6.19
      @tarojs/webpack5-runner: 3.6.19 => 3.6.19
      babel-preset-taro: 3.6.19 => 3.6.19
      eslint-config-taro: 3.6.19 => 3.6.19

补充信息

➜ alipay-ts git:(master) taro doctor
👽 Taro v3.6.19

🎯 验证环境信息!
[✓] 安装的 Node 版本为 v16.10.0

🎯 验证项目配置 (/config/index.js) !
[✓] 成功获取远程配置验证文件:https://raw.githubusercontent.com/NervJS/taro-doctor/main/assets/config_schema.json
[✓] 项目配置正确!

🎯 验证项目依赖安装正确性!
[!] 本地已经安装了 Taro CLI 版本为 3.6.19,建议使用 npm script 来执行项目的预览和打包
本地安装的 Taro 相关依赖版本信息如下:

  • @tarojs/components: 3.6.19
  • @tarojs/helper: 3.6.19
  • @tarojs/plugin-framework-vue3: 3.6.19
  • @tarojs/plugin-platform-alipay: 3.6.19
  • @tarojs/plugin-platform-h5: 3.6.19
  • @tarojs/plugin-platform-jd: 3.6.19
  • @tarojs/plugin-platform-qq: 3.6.19
  • @tarojs/plugin-platform-swan: 3.6.19
  • @tarojs/plugin-platform-tt: 3.6.19
  • @tarojs/plugin-platform-weapp: 3.6.19
  • @tarojs/runtime: 3.6.19
  • @tarojs/shared: 3.6.19
  • @tarojs/taro: 3.6.19
  • @tarojs/cli: 3.6.19
  • @tarojs/taro-loader: 3.6.19
  • @tarojs/test-utils-vue3: 0.1.1
  • @tarojs/webpack5-runner: 3.6.19

🎯 验证最佳实践!
[!] 没有检查到 Readme (readme/readme.md/readme.markdown), 编写 Readme 可以方便其他人了解项目

🎯 检查 ESLint (以下为 ESLint 的输出)!
[✓] Eslint 检查通过!

@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-alipay Target - 编译到支付宝小程序 V-3 Version - 3.x labels Nov 23, 2023
@TheKonka
Copy link
Member

image
没有复现

@lyz1948
Copy link
Author

lyz1948 commented Nov 23, 2023

image 没有复现

首先感谢您的及时回复,我这边一直不行,我把配置的 prebundle.enable: true后就没有报错了。
但是有出现了另外一个问题,安装的"taro-ui-vue3": "^1.0.0-alpha.21",input组件显示不了。dev模式下时有时无,build之后一直无法显示
input

@TheKonka
Copy link
Member

	compiler: {
		type: 'webpack5',
		prebundle: {
			enable: false
		}
	},

对,prebundle 我也是关闭的

taro-ui-vue3 这个组件库好久不更新了吧,可能无法正常使用了,可以换个保持更新的组件库,比如 nutui ,或者不用组件库自己写样式

@lyz1948
Copy link
Author

lyz1948 commented Nov 23, 2023

	compiler: {
		type: 'webpack5',
		prebundle: {
			enable: false
		}
	},

对,prebundle 我也是关闭的

taro-ui-vue3 这个组件库好久不更新了吧,可能无法正常使用了,可以换个保持更新的组件库,比如 nutui ,或者不用组件库自己写样式

好,谢谢!

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

2 participants