What is the correct way to use a chart component

UI Components for React
Post Reply
lex23
Posts: 1
Joined: 14 Sep 2017, 23:15

14 Sep 2017, 23:20

Hi,

Actually I have this error trying to use the line chart component:

Module not found: Can't resolve 'chart/src/chart.js' in 'C:\Users\Devsu\Documents\Projects\Tests\test-sm\node_modules\primereact\components\chart'

Anyone can help me to fix it, please

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

15 Sep 2017, 14:22

Please try;

Code: Select all

npm install chart.js --save

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests