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

Plans to update for ChartJS 4.x? #189

Open
oasjohn opened this issue Feb 24, 2023 · 11 comments
Open

Plans to update for ChartJS 4.x? #189

oasjohn opened this issue Feb 24, 2023 · 11 comments

Comments

@oasjohn
Copy link

oasjohn commented Feb 24, 2023

Are there any plans to update so we don't keep seeing the warning in install that ChartJS 3.0 dependency is not found?

It works with 4.x as far as I can tell, and using --force on the install works, but it would make me feel more comfortable if this plugin was officially supporting 4.x. :)

@oasjohn
Copy link
Author

oasjohn commented Mar 20, 2023

Any updates on this?

@NicoCaldo
Copy link

On another note, if installing with npm with the following package.json

{
  "name": "chartjs-example",
  "version": "1.0.0",
  "license": "MIT",
  "scripts": {
    "dev": "parcel src/index.html",
    "build": "parcel build src/index.html"
  },
  "devDependencies": {
    "parcel": "^2.6.2"
  },
  "dependencies": {
    "@cubejs-client/core": "^0.32.9",
    "chart.js": "^3.0.0",
    "chartjs-plugin-streaming": "^2.0.0"
  }
}

You have

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/chart.js
npm ERR!   chart.js@"^4.2.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer chart.js@"^3.0.0" from [email protected]
npm ERR! node_modules/chartjs-plugin-streaming
npm ERR!   chartjs-plugin-streaming@"^2.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

@BryceSimtars
Copy link

Bumping this issue, I am using v4.2.1 of chart.js and cannot pass build process without using force, which isnt ok for production. Please provide timeline for this issue

"chart.js": "^4.2.1",
"chartjs-adapter-moment": "^1.0.1",
"chartjs-plugin-streaming": "^2.0.0",
"moment": "^2.29.4",

npm ERR! code ERESOLVE

npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/chart.js
npm ERR! chart.js@"^4.2.1" from the root project
npm ERR! peer chart.js@">=3.0.0" from [email protected]
npm ERR! node_modules/chartjs-adapter-moment
npm ERR! chartjs-adapter-moment@"^1.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer chart.js@"^3.0.0" from [email protected]
npm ERR! node_modules/chartjs-plugin-streaming
npm ERR! chartjs-plugin-streaming@"^2.0.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/chart.js
npm ERR! peer chart.js@"^3.0.0" from [email protected]
npm ERR! node_modules/chartjs-plugin-streaming
npm ERR! chartjs-plugin-streaming@"^2.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!

@brettelliot
Copy link

Same. would love to see this updated for 4.x. Thanks!

@robotpilot
Copy link

I am waiting for the next update of this package. It would be great to be able to use it in ChartJS 4.x environment. Thanks. :)

@oasjohn
Copy link
Author

oasjohn commented Sep 29, 2023

Is no one maintaining this repo any more? If anyone has a newer (and maintained) alternative, I'd be happy to switch.

@oasjohn
Copy link
Author

oasjohn commented Oct 17, 2023

Bump??

@MiriamJo
Copy link

MiriamJo commented Oct 20, 2023

FYI: I found this forked repo for Chart.js V4.x , however I am unsure if it's legit or anything. Just wanted to let you guys know, will now try it myself.

@oasjohn ;)

@godind
Copy link

godind commented Mar 2, 2024

Bump!

@godind
Copy link

godind commented Mar 4, 2024

It would really be nice to have an update for this. I know it's on personal time!!!
Thank you1

@andregreeff
Copy link

thanks @MiriamJo, I've just successfully upgraded an Angular 17 project to use chart.js@4, switching over to @robloche/chartjs-plugin-streaming@3 at the same time.

I was about to check this one in "useful forks" when I saw your message, I appreciate you saving me a bit of a search. :)

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

No branches or pull requests

8 participants