antvis/G2

The issue has been closed
【v5】使用官方文档代码报错 #6127
denghuier posted onGitHub
问题描述
vue3 nodejs:20 npm:8.19.4 过程: 执行官方提供代码,链接如:https://g2.antv.antgroup.com/examples/general/interval/#bar-basic。抛出下面异常: Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. at getContainerSize (@antv_g2.js?v=942620aa:66272:17) at sizeOf2 (@antv_g2.js?v=942620aa:66451:64) at Chart3._createCanvas (@antv_g2.js?v=942620aa:67074:31) at Chart3.render (@antv_g2.js?v=942620aa:66898:12) at Antv.vue:24:7
重现链接
No response
重现步骤
No response
预期行为
No response
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
屏幕截图或视频(可选)
<img width="1061" alt="1710383774435" src="https://github.com/antvis/G2/assets/46817014/3e8fdb10-1aa9-415d-83e3-ee0cbc11ec55">
No response
补充说明(可选)
No response