Hi, I'm using:
"react": "^15.3.0",
"react-chartjs-2": "^1.2.4",
"webpack": "^1.13.1"
and when I try use chart with my wepack dev config like this:
import React from 'react';
import { connect } from 'react-redux';
import { Line } from 'react-chartjs-2';
...
render() {
return (
<div>
{ data ? <Line data={this.props.data} options={LINE_CHART_OPTIONS} /> : <Loader/> }
</div>
);
}
I get this error everytime
core.controller.js:496 Uncaught TypeError: Can't add property _meta, object is not extensible
But things work just fine when I build app with my production config, where webpack.UglifyJsPlugin added:
var uglifyPlugin = new webpack.optimize.UglifyJsPlugin({
compress: {
sequences: true,
dead_code: true,
conditionals: true,
booleans: true,
unused: true,
if_return: true,
join_vars: true,
drop_console: true
},
mangle: {
except: ['$super', '$', 'exports', 'require']
},
output: {
comments: false
}
});
Please let me know if any additional info needed.
Hi, I'm using:
and when I try use chart with my wepack dev config like this:
I get this error everytime
But things work just fine when I build app with my production config, where webpack.UglifyJsPlugin added:
Please let me know if any additional info needed.