We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
demo的版本是2.1.1是正常的 现在的版本4.0.4,编译页面会报错Behaviors should be constructed with Behavior()
The text was updated successfully, but these errors were encountered:
我也碰到这个问题了
Sorry, something went wrong.
const computedBehavior = require('miniprogram-computed').behavior 这么写 问题解决
这不是示例写法吗?我直接复制的示例报错
在 >=4.0.0 时用这个写法。较低版本的话去掉末尾的 .behavior 。
.behavior
这个是因为 4.0.0 改了接口。
在文档里强调了这个问题。
No branches or pull requests
demo的版本是2.1.1是正常的
现在的版本4.0.4,编译页面会报错Behaviors should be constructed with Behavior()
The text was updated successfully, but these errors were encountered: