Open plvz opened 7 years ago
Has this been resolved at all? I'm having the same issue
hi. I think you should double-check your webpack/babel config. this bug may occur when you did something wrong with webpack or babel configs. please check that you did it right and ping me if you need further help.
Hello for one project I want to use react-image-uploader so I installed it. then I added the import in my Home.js like that:
import React, { PropTypes } from 'react';
import ImageUploader from 'react-images-uploader';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Home.scss';
.....
Home.propTypes = {
news: PropTypes.arrayOf(PropTypes.shape({
title: PropTypes.string.isRequired,
link: PropTypes.string.isRequired,
contentSnippet: PropTypes.string,
})).isRequired,
};
export default withStyles(Home, s);
Then when I run the server I got an error :
If I remove the import ImageUploader from 'react-images-uploader'; I haven't error, someone could help me ?