brunch / deppack

Extract node modules to browser.
MIT License
4 stars 13 forks source link

Check for errors before normalizePath #15

Closed marcioj closed 8 years ago

marcioj commented 8 years ago

When requiring a non existent module the following error is thrown TypeError: Cannot read property 'split' of undefined

This PR fix this issue so a friendly message is displayed.

06 Apr 23:47:46 - error: Resolving deps of app/initialize.js failed. Could not load module 'notathing' from '/home/marcio/workspace/javascript/test-brunch/app'. Possible solution: add 'notathing' to package.json and `npm install`. 
goshacmd commented 8 years ago

👍