close
The Wayback Machine - https://web.archive.org/web/20200703103414/https://github.com/NervJS/taro/issues/4884
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

2.0.0beta.4版本,无法正常使用`'taro-plugin-canvas`包 #4884

Open
shenghanqin opened this issue Nov 21, 2019 · 4 comments
Open

2.0.0beta.4版本,无法正常使用`'taro-plugin-canvas`包 #4884

shenghanqin opened this issue Nov 21, 2019 · 4 comments
Assignees
Labels

Comments

@shenghanqin
Copy link
Collaborator

@shenghanqin shenghanqin commented Nov 21, 2019

问题描述

复现步骤

  1. 安装依赖
  2. 引用组件
  3. 微信开发者工具报错
import TaroCanvasDrawer from 'taro-plugin-canvas'

<TaroCanvasDrawer
        config={this.state.canvasConfig}
        onCreateSuccess={this.onCreateSuccess}
        onCreateFail={this.onCreateFail}
 />

期望行为

期望组件正常引用

报错信息

VM331:1 jsEnginScriptError
Component is not found in path "npm/taro-plugin-canvas/dist/weapp/components/taro-plugin-canvas/index" (using by "pages/index/index");onAppRoute
Error: Component is not found in path "npm/taro-plugin-canvas/dist/weapp/components/taro-plugin-canvas/index" (using by "pages/index/index")

系统信息

// 编译时提示,用了测试版了
> taro-framework@0.0.1 build:weapp /Users/hanqin/work/taro-framework
> taro build --type weapp "--watch"

👽 Taro v2.0.0-beta.3

// taro Info完整信息
👽 Taro v1.3.25


  Taro CLI 1.3.25 environment info:
    System:
      OS: macOS 10.15.1
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 10.14.1 - ~/.nvm/versions/node/v10.14.1/bin/node
      Yarn: 1.17.3 - ~/.nvm/versions/node/v10.14.1/bin/yarn
      npm: 6.12.0 - ~/.nvm/versions/node/v10.14.1/bin/npm
    npmPackages:
      @tarojs/async-await: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/cli: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/components: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/plugin-babel: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/plugin-csso: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/plugin-stylus: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/plugin-uglifyjs: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/redux: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/redux-h5: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/router: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/taro: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/taro-alipay: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/taro-h5: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/taro-swan: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/taro-tt: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/taro-weapp: ^2.0.0-beta.3 => 2.0.0-beta.3
      @tarojs/webpack-runner: ^2.0.0-beta.3 => 2.0.0-beta.3
      eslint-config-taro: ^2.0.0-beta.3 => 2.0.0-beta.3
      eslint-plugin-taro: ^2.0.0-beta.3 => 2.0.0-beta.3
      nerv-devtools: ^1.5.5 => 1.5.5
      nervjs: ^1.5.5 => 1.5.5
      stylelint-config-taro-rn: ^2.0.0-beta.3 => 2.0.0-beta.3
      stylelint-taro-rn: ^2.0.0-beta.3 => 2.0.0-beta.3

补充信息

如果您有功能上的建议,可以提到 FeatHub

使用上的问题,欢迎在「Taro 社区」一起交流

@taro-bot
Copy link

@taro-bot taro-bot bot commented Nov 21, 2019

@taro-bot
Copy link

@taro-bot taro-bot bot commented Nov 21, 2019

欢迎提交 Issue~

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

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

Good luck and happy coding~

@shenghanqin shenghanqin changed the title Taro-2.0.0bata.3版本,无法正常使用`'taro-plugin-canvas`包 Taro-2.0.0beta.3版本,无法正常使用`'taro-plugin-canvas`包 Nov 21, 2019
@shenghanqin shenghanqin changed the title Taro-2.0.0beta.3版本,无法正常使用`'taro-plugin-canvas`包 2.0.0beta.3版本,无法正常使用`'taro-plugin-canvas`包 Nov 21, 2019
@luckyadam
Copy link
Contributor

@luckyadam luckyadam commented Nov 21, 2019

可以试试 2.0.0-beta.4 版本~

@shenghanqin
Copy link
Collaborator Author

@shenghanqin shenghanqin commented Nov 21, 2019

兴冲冲地去尝试,还是不行滴。

@shenghanqin shenghanqin changed the title 2.0.0beta.3版本,无法正常使用`'taro-plugin-canvas`包 2.0.0beta.4版本,无法正常使用`'taro-plugin-canvas`包 Nov 27, 2019
@shenghanqin shenghanqin added the beta label Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.