elidoran / cosmos-browserify

Browserify npm modules for client side in Meteor packages
MIT License
78 stars 12 forks source link

Example app-npm doesn't work #35

Closed Mavrin closed 8 years ago

Mavrin commented 8 years ago

when I try run example, I get following error

While processing files with cosmos:browserify (for target web.browser):
client/lib/app.browserify.js: Cannot find module 'upper-case' from '.'
elidoran commented 8 years ago

Please provide more information so I can replicate the issue. Which Operating System? Which version of Node and Npm? Is the upper-case module in the node_modules folder in the root of the app? Did you run the command from the root of the app, or somewhere else?

I ask because when I do these commands on my systems it works for me:

git clone git@github.com:elidoran/cosmos-browserify-example.git
cd cosmos-browserify-example/app-npm
meteor run
Mavrin commented 8 years ago

I use Windows 7. I use node version 5.3.0, npm version 3.3.12. But I try on npm version 2... It doesn't work too.
image

elidoran commented 8 years ago

Fixed with 0.9.3. I changed the basedir to an absolute path for Browserify and it's happy.

Also, I added an error message which will help with errors.

It works on Win7 with Node 5.3 and Npm 3.5.2

Mavrin commented 8 years ago

Now it works nice. Thank you for quick fix.