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

【快应用】Taroize之后转快应用大量组件报错 #4336

Open
Qiyu8 opened this issue Aug 29, 2019 · 2 comments
Open

【快应用】Taroize之后转快应用大量组件报错 #4336

Qiyu8 opened this issue Aug 29, 2019 · 2 comments
Assignees
Labels
A-taroize Area - Taro convert 相关 T-quickapp Target - 编译到快应用

Comments

@Qiyu8
Copy link
Collaborator

Qiyu8 commented Aug 29, 2019

问题描述
微信小程序的组件生态是比较完善的,而快应用组件在不断的发展中,有很多小程序组件快应用都是不支持的,比如Form、CheckboxGroup、CoverView、Ad等,目前的做法是直接报错,整个页面转换失败,最终的快应用也是无法预览的。

在taro build --type quickapp的过程中会报错

错误  页面编译  页面C:\taro\packages\taro-cli\jisu\taroConvert\src\pages\tabbarShoppingCart\tabbarShoppingCart编译失败!
Error: ENOENT: no such file or directory, scandir 'C:\taro\packages\taro-cli\jisu\taroConvert\node_modules\@tarojs\components-qa\src\components\form'
    at Object.readdirSync (fs.js:795:3)
    at C:\taro\packages\taro-cli\dist\mini\helper.js:285:27
    at Set.forEach (<anonymous>)
    at Object.getImportTaroSelfComponents (C:\taro\packages\taro-cli\dist\mini\helper.js:282:24)
    at C:\taro\packages\taro-cli\dist\mini\page.js:129:59
    at Generator.next (<anonymous>)
    at C:\taro\packages\taro-cli\dist\mini\page.js:7:71
    at new Promise (<anonymous>)
    at __awaiter (C:\taro\packages\taro-cli\dist\mini\page.js:3:12)
    at buildSinglePage (C:\taro\packages\taro-cli\dist\mini\page.js:25:12) {
  errno: -4058,
  syscall: 'scandir',
  code: 'ENOENT',
  path: 'C:\\taro\\packages\\taro-cli\\jisu\\taroConvert\\node_modules\\@tarojs\\components-qa\\src\\components\\form'
}

复现步骤
1.在微信小程序根目录执行 taro convert
2.在taroConvert目录执行 taro build --type quickapp

期望行为
快应用不支持的组件可以自动注释掉或者使用快应用支持的组件替换掉

报错信息
cli\jisu\taroConvert\src\pages\tabbarShoppingCart\tabbarShoppingCart编译失败!
Error: ENOENT: no such file or directory, scandir 'C:\taro\packages\taro-cli\jisu\taroConvert\node_modules@tarojs\components-qa\src\components\form'

系统信息
操作系统: Windows 10
Taro 版本 v1.3.15
Node.js 版本 v12.7.0
报错平台 quickapp
补充信息
优化点:在转换过程中如果能将快应用不支持的组件可以自动注释掉或者使用快应用支持的组件替换掉就更好,至少先保证页面可以预览,在预览的过程中进行调试体验更佳

@taro-bot
Copy link

taro-bot bot commented Aug 29, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@luckyadam
Copy link
Member

在转换过程中如果能将快应用不支持的组件可以自动注释掉或者使用快应用支持的组件替换掉就更好,至少先保证页面可以预览,在预览的过程中进行调试体验更佳

收到~

@Chen-jj Chen-jj added A-taroize Area - Taro convert 相关 and removed taroize labels Jul 6, 2020
@Chen-jj Chen-jj added the T-quickapp Target - 编译到快应用 label Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-taroize Area - Taro convert 相关 T-quickapp Target - 编译到快应用
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants