Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it compatible with newer React versions (15.3.2 and up) #28

Open
adriagil opened this issue Jan 17, 2017 · 0 comments
Open

Make it compatible with newer React versions (15.3.2 and up) #28

adriagil opened this issue Jan 17, 2017 · 0 comments

Comments

@adriagil
Copy link

Hi I'm willing to integrate this library into my current project.
Now if I add the library I cannot compile the project due to this error:

Error: Cannot find module 'react/addons'

I've installed react-addons package and required into my component code.

var addons = require('react-addons')

and also I've added the 'externals' reference into my webpack.config file

externals: { 'react/addons': true }

I'm currently using React 15.3.2 and I wonder if there is a workaround for fixing that issue.

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant