Comments (10)
Taro 在 >= 3.6.0 版本中已经解决了 Dev 模式下引用 npm 包中组件挂载不上的问题
from taro-f2-react.
俺也一样
from taro-f2-react.
@EPSON-LEE @wanglihuaya
Hello,感谢问题反馈,经过测试 Taro 3.5.1 以下版本可用,发现是 Taro 升级后造成自定义组件中的 Canvas 组件没有成功挂载所致,建议可将问题提给 Taro
from taro-f2-react.
from taro-f2-react.
@wanglihuaya 原因是在 dev 开发模式下,taro-f2-react 中的 Canvas 未被成功挂载,在通过 createSelectorQuery 查找 f2Canvas 时未找到该组件,所以 res 实际返回为 null
刚才测试在 build 模式下也是正常的,只有在 dev 模式下有问题,
from taro-f2-react.
@wanglihuaya 建议先回退 Taro 版本
from taro-f2-react.
@wanglihuaya 原因是在 dev 开发模式下,taro-f2-react 中的 Canvas 未被成功挂载,在通过 createSelectorQuery 查找 f2Canvas 时未找到该组件,所以 res 实际返回为 null 刚才测试在 build 模式下也是正常的,只有在 dev 模式下有问题,
行 我试试build模式下,要不试试把代码中的res[0]都改为res?
from taro-f2-react.
@wanglihuaya 建议先回退 Taro 版本
目前也不是强依赖,项目中目前使用的是echarts,会有一些内存泄漏问题,导致小程序闪退,想试试 antv 好像也有问题
下面是一个代码片段
https://developers.weixin.qq.com/s/bGfkAGmc7BFL
手机预览下,应该都会崩掉
点击按钮 来回切换页面 进进出出
但是 开发者工具检测 Memory 内存又没 溢出
from taro-f2-react.
Taro 在 >= 3.6.0 版本中已经解决了 Dev 模式下引用 npm 包中组件挂载不上的问题
是某项配置的问题么?我在 Taro 3.6.2 中使用默认配置,Dev 模式下依旧存在该问题。
from taro-f2-react.
@lhzbxx
按照以下配置修改,看起来 Taro 新版本中 Dev 编译模式下是有 bug 的,先这样
{
...
compiler: {
type: 'webpack5',
prebundle: {
enable: false,
},
},
...
}
`
from taro-f2-react.
Related Issues (15)
- 引入报错 Component is not found in path "custom-wrapper" HOT 1
- 无法在钉钉环境下使用 HOT 1
- document.defaultView undefined HOT 2
- 支持 @antv/f2 5.x ? HOT 2
- 微信开发者工具中正常显示的图表在真机调试中报错并无法显示 HOT 1
- 在微信小程序上,页面滚动图表不会随着滚动,并且饼图的点击事件不生效。
- 获取接口数据,动态设置环形图数据,样式显示出现
- 无法显示刻度 HOT 3
- 单个页面使用多个图表 HOT 1
- 动态更新数据,动态销毁数据 chart 实例咋获取呢 HOT 2
- 无法正常展示图表 HOT 2
- 好像是canvas的错误 HOT 3
- 微信小程序下图形标签渲染不出来,H5正常
- taro 微信小程序无法正常显示 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taro-f2-react.