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

Behavior is not defined #8787

Closed
yezishan opened this issue Mar 1, 2021 · 1 comment
Closed

Behavior is not defined #8787

yezishan opened this issue Mar 1, 2021 · 1 comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@yezishan
Copy link

yezishan commented Mar 1, 2021

相关平台

H5

浏览器版本: Google Chrome 88
使用框架: React

复现步骤

转h5之后vant weapp中的Behavior报错了

Uncaught (in promise) ReferenceError: Behavior is not defined
at eval (basic.js?f7b4:2)
at Module../src/component/vant-weapp/mixins/basic.js (1.js:366)
at webpack_require (app.js:64)
at eval (component.js:4)
at Module../src/component/vant-weapp/common/component.js (1.js:249)
at webpack_require (app.js:64)
at eval (index.js:15)
at Module../src/component/vant-weapp/dialog/index.js (2.js:291)
at webpack_require (app.js:64)
at eval (index.js:23)

期望结果

能够正常编译Behavior

实际结果

Behavior is not defined

环境信息

Taro v3.2.0-canary.9


  Taro CLI 3.2.0-canary.9 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.16.3 - D:\Program Files\nodejs\node.EXE
      Yarn: 1.22.10 - D:\Data\npm\yarn.CMD
      npm: 6.14.4 - D:\Program Files\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Mar 1, 2021
@Chen-jj
Copy link
Contributor

Chen-jj commented Mar 1, 2021

vant-weapp 是面向小程序的组件库,不能运行在 H5 端

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

2 participants