-
Notifications
You must be signed in to change notification settings - Fork 958
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
taro4.0.7 运行报错 Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: #528
Comments
版本是 "@tarojs/taro": "^4.0.7", |
我使用taro开发h5搭配 lucky-canvas在引入组件后进行本地编译也会报这个错误了但是,在编译后再引入这个组件页面却可以正常显示。 |
请问有解决方案了吗 |
解决了,直接使用 "lucky-canvas": "^1.7.27",插件把他的 taro的 插件代码复制过来, 自己新建一个js就可以了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你当前是什么框架(必填):taro-react
你使用的是哪个包(必填):"@lucky-canvas/taro": "^0.0.14"
你当前插件的版本(必填):"@lucky-canvas/taro": "^0.0.14"
当前环境是小程序还是浏览器(选填):小程序
详细描述你的bug:
The text was updated successfully, but these errors were encountered: