Closed simeon9696 closed 2 years ago
Vue is trying to observe the chart instance and that collides with the proxies chart uses internally. If you need something observable, it should be the data and / or config, depending what can change. The instance should not be observed.
I got same error in html+javascript page.
Registered Plugins:
Chart.register(annotationPlugin, zoomPlugin, ChartStreaming, CategoryScale, LinearScale, LineController, PointElement, LineElement);
If I remove annotationPlugin from register function, does not show any error. Also this error comes after sometimes like 2-5 minutes later.
Stack on Firefox:
Uncaught InternalError: too much recursion _resolve helpers.segment.js:1807 _resolveWithPrefixes helpers.segment.js:1794 get helpers.segment.js:1605 _cached helpers.segment.js:1687 get helpers.segment.js:1604 _resolveWithContext helpers.segment.js:1695 get helpers.segment.js:1647 _cached helpers.segment.js:1687 get helpers.segment.js:1646 _resolve helpers.segment.js:1807 _resolveWithPrefixes helpers.segment.js:1794 get helpers.segment.js:1605
Google Chrome Stack Error: Maximum call stack size error.
Do you have a reproducable example with codesanbox for example @husmen73?
Hi! I am facing the same issue
Here is a very quickly pulled sandbox example, but the issue is demonstrated nonetheless
https://codesandbox.io/s/tender-dust-r2mu4?file=/src/components/Chart.vue:0-1813
You should not include the chart instance in the data
(observed stuff).
Should have read more carefully, that was it. Thanks!
I'm following the instructions here and I got the below error as soon as the graph is plotted. It only happens when I enable this package. I also get the error even though I have no
annotation
property in the config. The graph still plots but this error is thrown along with it. My function is attached after the stack trace.