Closed hamdibayhan closed 6 years ago
Hi,
I am doing following steps:
npx create-react-app my-app npm install chartkick react-chartkick --save
Then I added codes like the below;
./my-app/src/App.js
import React, { Component } from 'react'; import { LineChart, PieChart } from 'react-chartkick'; class App extends Component { render() { return ( <div className="App"> <LineChart data={{"2017-01-01": 11, "2017-01-02": 6}} /> </div> ); } } export default App;
./my-app/src/index.js
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
Then I am getting this error, Why I am getting this error:
Hey @hamdibayhan, see #15
Hi,
I am doing following steps:
Then I added codes like the below;
./my-app/src/App.js
./my-app/src/index.js
Then I am getting this error, Why I am getting this error: