Vue-chartjs: Error when building: 'This dependency was not found: chartjs'

Created on 15 Apr 2017  ยท  3Comments  ยท  Source: apertureless/vue-chartjs

Expected Behavior

When building, Vue builds and vue-chartjs causes no problems.

Actual Behavior

I see an error:
````
This dependency was not found:

  • chart.js in ./~/vue-chartjs/es/BaseCharts/Bar.js, ./~/vue-chartjs/es/BaseCharts/Doughnut.js and 6 others
    ````
    I have installed chartjs as well using npm (based on what I can understand from your latest release ntoes, this is required) and the issue is still occurring.

Any ideas?

Environment

  • vue.js version: 2.2.6
  • vue-chart.js version: 2.6.0
  • npm version: latest
โ“ question

Most helpful comment

Make sure you install chart.js, not chartjs. Two different things.

All 3 comments

Did you have vue-chartjs installed before? And upgraded to the latest version? Tried to delete the node modules folder and reinstall?

Whats your build setup? Webpack 2?

Make sure you install chart.js, not chartjs. Two different things.

Closed due to inactivity.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sykomaniac picture Sykomaniac  ยท  3Comments

syxolk picture syxolk  ยท  5Comments

Scalpel78 picture Scalpel78  ยท  4Comments

ssuess picture ssuess  ยท  5Comments

rzb picture rzb  ยท  4Comments