Skip to content

Loading…

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

Closed
rbgrouleff opened this Issue · 2 comments

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@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.

@rasmusrn rasmusrn added a commit that referenced this issue
@rasmusrn Fixes issue #1 (see github). e0c292d
@rasmusrn
Owner

Thanks for reporting :)

@rasmusrn rasmusrn closed this
@rasmusrn
Owner

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
Something went wrong with that request. Please try again.