Fileapi error
Closed this issue · 1 comments
anupvarghese commented
FileUpload.react.js:119 Uncaught TypeError: Cannot read property 'event' of null
I am getting the above error.
It is coming from
componentDidMount() {
FileAPI.event.on(this.refs.fileInput, 'change', this.handleFileChange);
Looks like FileAPI object is not created. Any idea?
anupvarghese commented
Issue is because of webpack define plugin
added below, to fix the issue
'process.env.IS_BROWSER': true,