componentjs / component

frontend package manager and build tool for modular web applications
https://github.com/componentjs/guide
MIT License
4.55k stars 304 forks source link

Component and npm failed (0.19.8) #496

Closed bredele closed 10 years ago

bredele commented 10 years ago

Hi guys,

I would like to publish a npm with my owner-name (bredele-store) in order to use it with both component and nodejs but it seems the alias in component is not working. For example, I would like to require component-emitter but I get the following error:

Uncaught Error: Failed to require "component-emitter" from "store/index.js" 

I checked and the path is the following:

store/deps/component-emitter

when the alias is:

require.alias("component-emitter/index.js", "store/deps/emitter/index.js");

I tried with other components and I get the same error.

jonathanong commented 10 years ago

hi this will be fixed soon in a coming component(1) release. reopen when it's released!

bredele commented 10 years ago

thanks @jonathanong.