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

Plugin compatibility #724

Closed
Sergiobop opened this issue Jan 27, 2023 · 1 comment
Closed

Plugin compatibility #724

Sergiobop opened this issue Jan 27, 2023 · 1 comment

Comments

@Sergiobop
Copy link

Hi, i can't use this plugin with chartjs 4.2.

I have the plugin-datalabels installed (2.2):

Error: node_modules/chart.js/dist/types/index.d.ts:2793:18 - error TS2428: All declarations of 'PluginOptionsByType' must have identical type parameters.

2793 export interface PluginOptionsByType<TType extends ChartType> {
                      ~~~~~~~~~~~~~~~~~~~


Error: node_modules/chart.js/dist/types/index.d.ts:2802:12 - error TS2314: Generic type 'PluginOptionsByType<TType, TType>' requires 2 type argument(s).

2802   plugins: PluginOptionsByType<TType>;
                ~~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/chartjs-plugin-zoom/types/index.d.ts:12:13 - error TS2428: All declarations of 'PluginOptionsByType' must have identical type parameters.

12   interface PluginOptionsByType<TType extends ChartType> {
               ~~~~~~~~~~~~~~~~~~~

Once i remove the chartjs-plugin-zoom plugin, all starts working again

@kurkle
Copy link
Member

kurkle commented Nov 17, 2024

This was fixed in chart.js 4.3.1

@kurkle kurkle closed this as completed Nov 17, 2024
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

Successfully merging a pull request may close this issue.

2 participants