0

I started to work on a new project and I need to set up the environment. All the others team members work with a OS X environment while I'm using Ubuntu 14. The project is already working for them but I'm having problems setting up.

I'm getting this error when I try to run

$ gulp watch
Cannot find module 'React' from '/home/camilatigre/dev/kahuso/kahuso-ux/scripts/components/company/dashboard'`

And if I try to run browserify I also get a similar error:

$ browserify -t reactify ./scripts/app.jsx > app.js
Error: Cannot find module 'React' from '/home/camilatigre/dev/kahuso/kahuso-ux/scripts/components/company/dashboard'
at /home/camilatigre/.nvm/versions/node/v0.12.7/lib/node_modules/browserify/node_modules/resolve/lib/async.js:46:17
at process (/home/camilatigre/.nvm/versions/node/v0.12.7/lib/node_modules/browserify/node_modules/resolve/lib/async.js:173:43)
at ondir (/home/camilatigre/.nvm/versions/node/v0.12.7/lib/node_modules/browserify/node_modules/resolve/lib/async.js:188:17)
at load (/home/camilatigre/.nvm/versions/node/v0.12.7/lib/node_modules/browserify/node_modules/resolve/lib/async.js:69:43)
at onex (/home/camilatigre/.nvm/versions/node/v0.12.7/lib/node_modules/browserify/node_modules/resolve/lib/async.js:92:31)
at /home/camilatigre/.nvm/versions/node/v0.12.7/lib/node_modules/browserify/node_modules/resolve/lib/async.js:22:47
at FSReqWrap.oncomplete (fs.js:95:15)

I already tried to reinstall npm, nodejs, browserify, reactify, clean the node_modules folder and re-add all the packages but nothing works.

Any suggestions? :)

9
  • where is the react module actually? Commented Apr 12, 2016 at 23:04
  • What command do you use to install the packages? Also, to make sure, it is asking you about React, not Reactify Commented Apr 12, 2016 at 23:08
  • npm install react @MatthewHerbst Commented Apr 13, 2016 at 1:48
  • kahuso/kahuso-ux/node_modules/ here are all modules @antman Commented Apr 13, 2016 at 1:48
  • @CamilaTigre are you installing all this globally or local to your project as dependencies or devDependencies Commented Apr 13, 2016 at 4:06

1 Answer 1

1

i found a solution. 2 archives were using a require('React') when it should be a lowercase r.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.