A require through more than two files in the same dir fails #1

Closed
rbgrouleff opened this Issue Apr 5, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@rbgrouleff

I've made a test for this. I have, however, not been able to fix it myself. The commit with the test is here: rbgrouleff/hercules@7f0450c

The gist of it is basically that the base_dir seems to be reset to '.' when child2.js calls require('./child3'); which means it tries to find child3.js instead of lib/child3.js.

raroni pushed a commit that referenced this issue Apr 7, 2012

@raroni

This comment has been minimized.

Show comment
Hide comment
@raroni

raroni Apr 7, 2012

Owner

Thanks for reporting :)

Owner

raroni commented Apr 7, 2012

Thanks for reporting :)

@raroni raroni closed this Apr 7, 2012

@raroni

This comment has been minimized.

Show comment
Hide comment
@raroni

raroni Apr 7, 2012

Owner

A new version of Hercules has been released with this fix :)

Owner

raroni commented Apr 7, 2012

A new version of Hercules has been released with this fix :)

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