-
Notifications
You must be signed in to change notification settings - Fork 4
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
编译报错:TypeError: Cannot destructure property 'node' of 'res[0]' as it is null. #3
Comments
俺也一样 |
@EPSON-LEE @wanglihuaya |
@wanglihuaya 原因是在 dev 开发模式下,taro-f2-react 中的 Canvas 未被成功挂载,在通过 createSelectorQuery 查找 f2Canvas 时未找到该组件,所以 res 实际返回为 null |
@wanglihuaya 建议先回退 Taro 版本 |
行 我试试build模式下,要不试试把代码中的res[0]都改为res? |
目前也不是强依赖,项目中目前使用的是echarts,会有一些内存泄漏问题,导致小程序闪退,想试试 antv 好像也有问题 下面是一个代码片段 手机预览下,应该都会崩掉 点击按钮 来回切换页面 进进出出 |
Taro 在 >= 3.6.0 版本中已经解决了 Dev 模式下引用 npm 包中组件挂载不上的问题 |
是某项配置的问题么?我在 Taro 3.6.2 中使用默认配置,Dev 模式下依旧存在该问题。 |
@lhzbxx {
...
compiler: {
type: 'webpack5',
prebundle: {
enable: false,
},
},
...
}
` |
@antv/f2: "^4.0.39",
Taro v3.5.10
The text was updated successfully, but these errors were encountered: