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

jacobmischka picture jacobmischka  ยท  3Comments

timster picture timster  ยท  5Comments

egorzekov picture egorzekov  ยท  4Comments

LeeLenaleee picture LeeLenaleee  ยท  3Comments

Tirke picture Tirke  ยท  4Comments