-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
Error messages are not precise enough #223
Comments
I’d be quite happy to review a PR that improved error messages. |
I am not sure I would have time for this unfortunately. |
Related to this, does the error list all variants tried, if you have multiple paths and extensions? |
Sounds interesting. Happy to look into this. Would drop updates here as I go. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to run
resolve
against a library which had an invalidmain
field inpackage.json
.With
require.resolve()
, the error message is:With
resolve
, it is:Missing error information was critical in my use case, and it took some time to figure out why
resolve
was failing.The text was updated successfully, but these errors were encountered: