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

Error: Cannot find module 'react-router/build/npm' #2

Open
swese44 opened this issue Mar 24, 2015 · 3 comments
Open

Error: Cannot find module 'react-router/build/npm' #2

swese44 opened this issue Mar 24, 2015 · 3 comments

Comments

@swese44
Copy link

swese44 commented Mar 24, 2015

/node_modules/react-router/ doesn't contain a "build" directory, I'm not sure what I'm missing. Thanks!

@jhollingworth
Copy link
Contributor

Hey, this should be fixed in latest version of generator-marty? Regardless you can fix it by changing it to 'react-router' and making sure your package.json looks like this https://github.com/jhollingworth/generator-marty/blob/master/app/templates/_package.json#L11

@swese44
Copy link
Author

swese44 commented Mar 24, 2015

Ya that's exactly what I have, I just installed this for the first time to check it out. The actual installed version of react-router was 0.13.2, I tried downgrading it to 0.13.0 as well.

I see the react-router/build directory exists in its github repository but not locally, so I removed it and installed via "git clone", but then I ran into JSX parsing errors. I'm new to a lot of this so I'm not sure what I'm missing.

@jhollingworth
Copy link
Contributor

really not sure what the problem is here. I've just tried doing a fresh install and everything seems to work OK. the react router NPM package should work without any need to compile anything. Can you just double check there aren't any references to react-router/build/npm in your source?

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

2 participants