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
I'm using Next.js 12.3.2-canary.15, though I don't expect this to be caused by the canary build. In any case, if someone knows this to be an issue in canary, let me know.
I believe this may have something to do with the crosshair plugin being enabled for non "grid-like" charts, such as for pie charts and all that don't have X/Y axes.
Because I was using a common config for all my charts, bar, line, pie, etc. When I disabled the crosshair plugin for pie charts, the error stopped.
To disable it I had to set options.plugins.crosshair = false.
Still, instead of crashing, I'd expect it to just ignore the plugin it's not going to work and throw a warning maybe.
Issue:
The error in the title shows up the moment chartjs-plugin-crosshair is added.
Commenting out just its registration line removes the error.
I see one of two errors, and it's hard to determine when either happens:
Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'syncEventHandler')
Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'enabled')
I'm using Next.js
12.3.2-canary.15
, though I don't expect this to be caused by the canary build. In any case, if someone knows this to be an issue in canary, let me know.Initialization code:
Versions:
Point of error:
The text was updated successfully, but these errors were encountered: