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

快应用不支持Taro组件Canvas #3723

Closed
YouthBaby opened this issue Jul 9, 2019 · 3 comments
Closed

快应用不支持Taro组件Canvas #3723

YouthBaby opened this issue Jul 9, 2019 · 3 comments
Assignees

Comments

@YouthBaby
Copy link

问题描述
无法使用Taro组件Canvas写快应用(快应用原生是支持canvas的)

复现步骤
1、在一个组件中引入Canvas

import { Canvas } from '@tarojs/components'

2、执行 taro build --type quickapp --watch
3、编译报错

期望行为
支持Canvas组件,编译成功

报错信息

{ Error: ENOENT: no such file or directory, scandir 'E:\project\miniapp\node_modules\@tarojs\components-qa\src\components\taro-canvas'
    at Object.readdirSync (fs.js:790:3)
    at taroSelfComponents.forEach.c (C:\Users\YouthBaby\AppData\Roaming\npm\node_modules\@tarojs\cli\dist\mini\helper.js:285:27)
    at Set.forEach (<anonymous>)
    at Object.getImportTaroSelfComponents (C:\Users\YouthBaby\AppData\Roaming\npm\node_modules\@tarojs\cli\dist\mini\helper.js:282:24)
    at C:\Users\YouthBaby\AppData\Roaming\npm\node_modules\@tarojs\cli\dist\mini\component.js:203:59
    at Generator.next (<anonymous>)
    at C:\Users\YouthBaby\AppData\Roaming\npm\node_modules\@tarojs\cli\dist\mini\component.js:7:71
    at new Promise (<anonymous>)
    at __awaiter (C:\Users\YouthBaby\AppData\Roaming\npm\node_modules\@tarojs\cli\dist\mini\component.js:3:12)
    at buildSingleComponent (C:\Users\YouthBaby\AppData\Roaming\npm\node_modules\@tarojs\cli\dist\mini\component.js:84:12)
  errno: -4058,
  syscall: 'scandir',
  code: 'ENOENT',
  path:
   'E:\\project\\miniapp\\node_modules\\@tarojs\\components-qa\\src\\components\\taro-canvas' }

系统信息
Taro CLI 1.3.6 environment info:
System:
OS: Windows 10
Binaries:
Node: 10.16.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.16.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD

@taro-bot
Copy link

taro-bot bot commented Jul 9, 2019

欢迎提交 Issue~

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

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

Good luck and happy coding~

@luckyadam
Copy link
Member

快应用的 Canvas 组件正在支持中

@taro-bot
Copy link

taro-bot bot commented Jul 9, 2019

CC @jinjinjin0731

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants