-
Notifications
You must be signed in to change notification settings - Fork 26
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
Cannot manage to alias react/addons to react #14
Comments
I'm not familiar with react, but; With or without |
Well, I am not sure how the project is built but if you install it with npm, you will find |
I have managed to produce another solution for this. A "shim" if that is the correct term. Looks like this:
Now, either if Should the issue be closed? My problem is solved but perhaps this is still an issue in the eyes of aliasify. |
I'll close this one, as I think 17 is essentially the same issue. Glad you found a workaround. :) |
I am experementing a bit with react, browserify and aliasify and I have these wishes:
I have managed to do the things described above but I ran into this specific situation:
In some places of my code I want to use react with addons and as such require it like this:
var React = require('react/addons)
. I don't do this in all parts of my code and it is not done in 3rd party dependencies such as react-router.I tried to solve this situation with aliasify like this for all my extrnal modules
What happens when I load my page is that I get the error
Cannot find module 'react'
originating from thereact-router
module.Should it be possible to do what I am trying to do?
More general question on stackoverflow
The text was updated successfully, but these errors were encountered: