ilearnio / module-alias

Register aliases of directories and custom module paths in Node
MIT License
1.76k stars 69 forks source link

Not working when using fork #1

Closed leesiongchan closed 8 years ago

leesiongchan commented 8 years ago

package.json

{
  ...
  "dependencies": {
    ...
    "react-helmet": "moviepilot/react-helmet",
    ...
  }
  ...
}
module.js:340
    throw err;
    ^

Error: Cannot find module 'react-helmet'
...
ilearnio commented 8 years ago

It seems there is something wrong with the module you're trying to require. It's package.json contains a line "main": "./lib/index.js",. There is no such file, so it causes the error

ilearnio commented 8 years ago

Anyway, I have added a test case to make sure it is working fine when requiring repos