Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Requiring a relative file in `index.js` with same name as library doesn't work #38

vjpr opened this Issue Sep 27, 2012 · 2 comments


None yet
2 participants

vjpr commented Sep 27, 2012

# rpc/index.js

//= require ./rpc

# rpc/rpc.coffee

console.log 'Hello'

rpc.coffee is not included.

Renaming rpc.coffee to rpc1.coffee and updating directives works.

The issue is case-insensitive too.


vjpr commented Oct 2, 2012

Also occurs in the following situation:

# api/index.coffee
#= require ./clientApi


# api/src/api.coffe
# Foo


# api/src/extensionApi.coffee
#= require ./api

When using #= require api/src/extensionApi, clientApi is included but shouldn't be.

It behaves correctly if I move extensionApi to api/extensionApi and use #= require ./src/api.

ixti added a commit that referenced this issue Oct 12, 2012


ixti commented Oct 13, 2012

Fixed. The problem was caused by hike-js.

@ixti ixti closed this Oct 13, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment