Taro 整合 f2-wx 4.0.28 报错 “TypeError: Cannot read property 'options' of undefined”
- Dominant language
- JavaScript
- Stars
- 8k
- Forks
- 637
- PR merge metrics
- No merged PRs in 30d
Description
最近在Taro 3.5.4 使用 f2-wx 参照
https://juejin.cn/post/7088500507760656414 及 https://f2.antv.vision/zh/docs/tutorial/miniprogram 时无法正常运行,报错为
```
VM316:7462 页面【components/f2-wx]错误:
TypeError: Cannot read property 'options' of undefined
at .._src_utils.ts:100
at Array.forEach ()
at createComponentConfig (.._src_utils.ts:97)
at Module../src/components/f2-wx/es/index.js (index.js?2c37:3)
at __webpack_require__ (webpack_bootstrap:79)
at checkDeferredModules (webpack_bootstrap:45)
at Array.webpackJsonpCallback [as push] (webpack_bootstrap:32)
at f2-wx.js?t=wechat&s=1662993020866&v=9ba7de4bbc6c3a3c9d5cec52554cfaca:1
at I (VM280 WAService.js:1)
at :7459:7(env: macOS,mp,1.06.2208010; lib: 2.26.0)
```
有没有朋友遇到这样的问题,这个问题怎么解决呢,打扰了,多谢了!
排查过程,使用全新的空工程使用@antv/f2 @antv/f2-wx 版本都为4.0.28 按文章一步一步操作报错如上,有了解的多指点多谢了
Contributor guide
Research direction
Reproduce the report with Taro 3.5.4 and @antv/f2 and @antv/f2-wx 4.0.28, following the linked tutorials. Start at _src_utils.ts around createComponentConfig and the src/components/f2-wx/es/index.js entry point; done means the example runs without the reported TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100