-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
errors: fix ERR_MODULE_RESOLUTION_LEGACY message #15290
Conversation
lib/internal/errors.js
Outdated
@@ -231,7 +231,7 @@ E('ERR_METHOD_NOT_IMPLEMENTED', 'The %s method is not implemented'); | |||
E('ERR_MISSING_ARGS', missingArgs); | |||
E('ERR_MISSING_MODULE', 'Cannot find module %s'); | |||
E('ERR_MODULE_RESOLUTION_LEGACY', '%s not found by import in %s.' + | |||
'Legacy behavior in require would have found it at %s'); | |||
' Legacy behavior in require would have found it at %s'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question/nit: require
-> require()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am okay with that change, @bmeck?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, seems fine
Landed in 6ccb9fe. |
PR-URL: nodejs#15290 Refs: nodejs#14369 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This will need to be backported for v8.x |
Refs: #14369
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
errors