Cannot read property 'Chart' of undefined #93
Comments
Did you specifically run "npm install chart.js" in your terminal when you installed react-chartjs? |
I installed the chart.js, but the problems still exist |
Make sure you install |
I'm receiving this same error |
same problem here |
++ |
Same issue. Excluding node_modules from babel-loader fixed it.
|
+1 |
1 similar comment
+1 |
I had the same problem, but as @nickstanish suggested in his response, node_modules exclusion in Webpack solved this. Thanks. |
Thanks @nickstanish works for me! |
In my case was the incorrect version installed 1.1. should be ^2. UPDATE: The error was quite different |
Hi,
I cannot find many details as to why I am getting an error when trying to render a chart using react-chartjs. I'm using react v0.13 and webpack.
I use the following code :
var LineChart = require("react-chartjs").Line;
var React = require('react');
var LChart = React.createClass({
propTypes: {
data: React.PropTypes.object
},
render: function() {
}
});
module.exports = LChart;
but when I use this component within my app I get the error Cannot read property 'Chart' of undefined line 10 Chart.js . Is this a commonly found error and I am missing the solution somewhere ? Thanks for any comments
The text was updated successfully, but these errors were encountered: