rkit / react-select2-wrapper

Wrapper for Select2
MIT License
163 stars 97 forks source link

Error when browserifying react-select2-wrapper module #1

Closed ksmirnoff closed 8 years ago

ksmirnoff commented 9 years ago

I am getting the following error when trying to browserify the wrapper

SyntaxError: node_modules/react-select2-wrapper/src/components/Select2.jsx: Unexpected token (5:19) 3 | 4 | export default class Select2 extends React.Component {

5 | static propTypes = { | ^ 6 | data: React.PropTypes.array, 7 | events: React.PropTypes.array, 8 | options: React.PropTypes.object,

rkit commented 9 years ago

Please, try to update. Added compile from es6 to es5. Please, let me know if something is wrong.

rkit commented 8 years ago

I closed. If you have any problems, let me know.