Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Can't resolve 'chart.js' #220

Open
Open

Description

@energetickoala

I installed react-chartjs via NPM and when i try and use Pie i get the error Error Can't resolve 'chart.js' in '/home/a7meds3d/Documents/WorkSpace/MERN/CIOChatbot/node_modules/react-chartjs/lib'.

Activity

  1. larsdouweschuitema commented on May 2, 2018

    @larsdouweschuitema

    The documentation reads:

    "You must also include chart.js and React as dependencies."

    Run the following command:
    npm install --save chart.js

  2. energetickoala commented on May 2, 2018

    @energetickoala
    Author

    The error message was after I installed chart.js, maybe I installed chartjs not chart.js.
    Will test it again.

  3. Tom-Gorup commented on Jun 27, 2018

    @Tom-Gorup

    @larsdouweschuitema This solved my problem. Thanks!

  4. amineb01 commented on Sep 5, 2018

    @amineb01
  5. gion commented on Sep 28, 2018

    @gion

    Why not add chart-js as an actual dependency in the package.json file?

  6. javaProgrammer44 commented on Oct 24, 2018

    @javaProgrammer44

    Please add these in angular.json file
    "scripts": [
    "node_modules/chart.js/dist/Chart.js",
    "node_modules/hammerjs/hammer.min.js"
    ],

  7. kumarbitthal commented on Jan 10, 2019

    @kumarbitthal

    Install missing charts dependencies: charts.js & angular2-chartsjs
    I installed it locally and it worked. Don't forget to import these in your code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions