antvis / antvis/F2

微信小程序使用antV f2 TypeError: Cannot read property '__wxWebviewId__' of undefined

Open
#1,325 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

VM3657:2404 页面【miniprogram_npm/@antv/wx-f2/index]错误:
TypeError: Cannot read property '__wxWebviewId__' of undefined
at Object.in (VM3578 WAService.js:2)
at Object.t. [as in] (VM3578 WAService.js:2)
at index.js?t=wechat&s=1640227635707&v=f509a48206cc51c41703c30c7da07557:18245
at index.js?t=wechat&s=1640227635707&v=f509a48206cc51c41703c30c7da07557:20882
at createCommonjsModule (index.js?t=wechat&s=1640227635707&v=f509a48206cc51c41703c30c7da07557:18232)
at index.js?t=wechat&s=1640227635707&v=f509a48206cc51c41703c30c7da07557:18235
at index.js?t=wechat&s=1640227635707&v=f509a48206cc51c41703c30c7da07557:2
at index.js?t=wechat&s=1640227635707&v=f509a48206cc51c41703c30c7da07557:5
at p (VM3578 WAService.js:2)
at :2401:7(env: macOS,mp,1.05.2111300; lib: 2.21.0)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the error in the WeChat mini-program environment described in the report, then inspect miniprogram_npm/@antv/wx-f2/index and the referenced index.js stack locations around lines 18245 and 20882. Done means identifying the undefined value that triggers the __wxWebviewId__ TypeError and confirming the chart can initialize without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.