Skip to content
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

【v5】使用官方文档代码报错 #6127

Closed
denghuier opened this issue Mar 14, 2024 · 1 comment
Closed

【v5】使用官方文档代码报错 #6127

denghuier opened this issue Mar 14, 2024 · 1 comment

Comments

@denghuier
Copy link

denghuier commented Mar 14, 2024

问题描述

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]

屏幕截图或视频(可选)

1710383774435

No response

补充说明(可选)

No response

@denghuier
Copy link
Author

问题描述

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]

屏幕截图或视频(可选)

1710383774435 _No response_

补充说明(可选)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant