You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
使用antv/g2最新版本,按照官网的示例,不能正确显示图表,出现报错
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'getContext')
at Canvas2DContextService._callee$ (index.esm.js:438:41)
at tryCatch (index.esm.js:107:17)
at Generator.eval (index.esm.js:186:22)
at Generator.eval [as next] (index.esm.js:131:21)
at asyncGeneratorStep (index.esm.js:362:24)
at _next (index.esm.js:380:9)
at eval (index.esm.js:385:7)
at new Promise ()
at Canvas2DContextService.eval (index.esm.js:377:12)
at Canvas2DContextService.init (index.esm.js:447:20)
at Canvas._callee2$ (index.esm.js:11932:48)
at tryCatch (index.esm.js:803:17)
at Generator.eval (index.esm.js:882:22)
at Generator.eval [as next] (index.esm.js:827:21)
at asyncGeneratorStep (index.esm.js:1058:24)
at _next (index.esm.js:1076:9)
at eval (index.esm.js:1081:7)
at new Promise ()
at Canvas.eval (index.esm.js:1073:12)
at Canvas.initRenderer (index.esm.js:11957:28)
at _callee$ (index.esm.js:11766:26)
at tryCatch (index.esm.js:803:17)
at Generator.eval (index.esm.js:882:22)
at Generator.eval [as next] (index.esm.js:827:21)
at asyncGeneratorStep (index.esm.js:1058:24)
at _next (index.esm.js:1076:9)
at eval (index.esm.js:1081:7)
at new Promise ()
at eval (index.esm.js:1073:12)
at new Canvas (index.esm.js:11777:8)
at Chart.render (chart.js:106:30)
at Proxy.initChart (HelloWorld.vue:35:13)
at eval (HelloWorld.vue:40:12)
The text was updated successfully, but these errors were encountered:
ferrydjing
changed the title
Cannot read properties of undefined (reading 'getContext')
V5版本Cannot read properties of undefined (reading 'getContext')
May 24, 2023
version: @antv/g2@5.0.8
使用antv/g2最新版本,按照官网的示例,不能正确显示图表,出现报错
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'getContext')
at Canvas2DContextService._callee$ (index.esm.js:438:41)
at tryCatch (index.esm.js:107:17)
at Generator.eval (index.esm.js:186:22)
at Generator.eval [as next] (index.esm.js:131:21)
at asyncGeneratorStep (index.esm.js:362:24)
at _next (index.esm.js:380:9)
at eval (index.esm.js:385:7)
at new Promise ()
at Canvas2DContextService.eval (index.esm.js:377:12)
at Canvas2DContextService.init (index.esm.js:447:20)
at Canvas._callee2$ (index.esm.js:11932:48)
at tryCatch (index.esm.js:803:17)
at Generator.eval (index.esm.js:882:22)
at Generator.eval [as next] (index.esm.js:827:21)
at asyncGeneratorStep (index.esm.js:1058:24)
at _next (index.esm.js:1076:9)
at eval (index.esm.js:1081:7)
at new Promise ()
at Canvas.eval (index.esm.js:1073:12)
at Canvas.initRenderer (index.esm.js:11957:28)
at _callee$ (index.esm.js:11766:26)
at tryCatch (index.esm.js:803:17)
at Generator.eval (index.esm.js:882:22)
at Generator.eval [as next] (index.esm.js:827:21)
at asyncGeneratorStep (index.esm.js:1058:24)
at _next (index.esm.js:1076:9)
at eval (index.esm.js:1081:7)
at new Promise ()
at eval (index.esm.js:1073:12)
at new Canvas (index.esm.js:11777:8)
at Chart.render (chart.js:106:30)
at Proxy.initChart (HelloWorld.vue:35:13)
at eval (HelloWorld.vue:40:12)
在线demo:https://codesandbox.io/s/tender-sound-3wj23e?file=/src/components/HelloWorld.vue
The text was updated successfully, but these errors were encountered: