question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

q: chart.js 2.8.0

See original GitHub issue

Expected Behavior

all peer deps are met

Actual Behavior

chart.js 2.8 has been released yesterday, and because we were installing “chart.js@^2.7.2” as a peer dep we now get an error about unmet peer dep

historically, I see vue-chart.js went from

all of that happening in sep-nov 2017, but without clear indications (the peer dep changes are tangent to other fixes)

can you confirm that you have a strict requirement on 2.7, rather than ^2.7.0 ? thanks!

Environment

  • vue.js version: 2.8.0
  • vue-chart.js version: ^3.4.0
  • npm version: 6.7.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
aperturelesscommented, Mar 18, 2019

Oh, good catch! Fixed the peerDependency version to include older versions. I generally do not consider it as a breaking change, because either in a npm env or browser env it would work / properly build, even if the peerDependency version is mismatched.

A breaking change for me, would be an external API change, that would break peoples projects if they upgrade. Or an internal change that requires strict versions of for example vue.js to work. If vue would add some new function that I utilize and vue-chartjs thus requiring at least that version.

Because then, if people only upgrade vue-chartjs it would not work.

0reactions
andreineculaucommented, Mar 18, 2019

Forgot to ask how do you address vue-chartjs semver? Because the commit is breaking. Non-breaking would be “>=2.7 <2.9”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keywords - chart.js - npm
chart.js. TypeScript icon, indicating that this package has built-in type declarations. 2.8.0 • Public • Published 4 years ago.
Read more >
Chart.js
Chart.js renders chart elements on an HTML5 canvas unlike several other, mostly D3.js-based, charting libraries that render as SVG. Canvas ...
Read more >
lightning web components - Chartjs 2.8.0 in lwc
Using chartjs 2.8.0, added it as static resource. All the time getting an error: chart not defined. Implemented doughnut chart earlier using ...
Read more >
Annotation plugin not working with Chart.js 2.8.0
trying to get chart annotation plugin to work on chartjs 2.8. 0 - as of now the annotations dont show up at all....
Read more >
chart.js 2.8.0 vulnerabilities - Snyk
chart. js is a Simple HTML5 charts using the canvas element. Affected versions of this package are vulnerable to Prototype Pollution. The options...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found