-
Notifications
You must be signed in to change notification settings - Fork 330
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
Error TS2567 when using this plugin in version 2.1.2 #854
Comments
Same here with new version I get this error |
As workaround, you could set |
Yes, I have already solved this problem using skipLibCheck, but I don't think that is a good way either! |
@yKicchan let me ask you a couple of things:
@LeeLenaleee @kurkle any thought? You know, my knowledge on TS is not so good... |
@stockiNail I'm using chart.js 4.2.0 and the the latest version of this plugin and it is not working, |
Thank you @navelya . I did some tests on different TS versions, using chart.js 4.2.1 and the last version of plugin 2.1.2 but I wasn't able to reproduce the issue. Can you provide me more info about your environment in order to try to reproduce the issue? |
Im using angular in my project and also another chart.js plugin, if it working on chart.js 4.2.1 perhaps its chart.js problem even though a diffrent plugins are working, I can't use chartmjs 4.2.1 in my project because it is not up to me so the entire project is on 4.2.0. |
@navelya I have created a sample app by Angular (15.2.0). I have added chartjs (4.2.1 and also with 4.2.0), plugin annotation (2.1.2) and datalabels (2.2.0) and it's working. The chart, annotations and labels are well rendered and no issue from TS (4.9.5). I'll take more time in the next days if I can reproduce the issue. |
Hi @stockiNail . I am able to reproduce the exact same issue with Chart.js v4.2.1. Please help address this issue. |
Can you provide the reproducible sample? |
@stockiNail Attached you find a reproducible sample. In this case its a combination of |
@KevinSafeguard thank youuuu! very helpful! I think it's Chart.js issue and I raised it in chartjs slack dev channel. I'm thinking that because if you change the sequence of the "import"s for zoom and annotation plugins in your code ( |
I saw the same bug today, but after re-install all packages, it worked. |
Again the same problem this morning without reason. I did not understand how to fix it in #877 |
The fix has not been released yet. It will be with next version. |
When I install this plugin and import it I get an error:
I am using chartjs 4.2.1.
When using version 2.0.1 of this plugin everything works. However I dont think thats a proper solution.
The text was updated successfully, but these errors were encountered: