-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module resolution description does not reflect the implementation #7151
Comments
tai2
changed the title
Module resolution description does not reflect to the implementation
Module resolution description does not reflect the implementation
Jun 4, 2016
Apparently it's been wrongly documented ever since it was first added, more than five years ago in commit ff39d41. |
2 tasks
bmeck
added a commit
to bmeck/node
that referenced
this issue
Mar 17, 2017
PR-URL: nodejs#11897 Fixes: nodejs#7151
PR #11897 |
andrew749
pushed a commit
to michielbaird/node
that referenced
this issue
Jul 19, 2017
PR-URL: nodejs/node#11897 Fixes: nodejs/node#7151 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've just read this:
All Together...
https://nodejs.org/docs/latest/api/modules.html#modules_all_together
From this document, if a script in /Uesrs/foo (Y) does
require('/b.js');
(X), it should be resolved to /Users/foo/b.js (Y + X). But as long as I tested, it's resolved to an absolute path (/b.js).I guess either the document or implementation is wrong.
Here is the code.
https://gist.github.com/tai2/b2121a67cfab8b1945cc4b292fc737dd
The text was updated successfully, but these errors were encountered: