-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Confusing error message when "basedir" is not a directory #154
Comments
Thanks; I've added some tests to ensure that the behavior doesn't change. In the next major (because changing error messages has been a breaking change for this lib in the past), I'll improve the error message here so that it's explicit about what you did wrong :-) |
ljharb
added a commit
that referenced
this issue
Apr 4, 2018
ljharb
added a commit
that referenced
this issue
Apr 7, 2018
- [New] `resolve.sync`: add `opts.pathFilter` (#146) - [Fix] Make loadAsFileSync() work the same as async loadAsFile() (#146) - [Fix] support `opts.package` in non-relative lookups (#152) - [Docs] fix default “isFile” implementations - [Docs] fix options formatting - [Refactor] cache default isFile functions at module level - [Refactor] use "basedir" instead of "y", because meaningful variable names - [Tests] add some tests for a non-directory basedir (#154) - [Tests] work around npm SSL issue - [Tests] add some tests for browser field - [Tests] add node 8 and 9 to appveyor
ljharb
added a commit
to keithamus/resolve
that referenced
this issue
May 15, 2019
Backport of 698a3e1 to 1.x without the breaking change. See browserify#154.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I mistakingly passed a filename as
basedir
option.I found the error message quite confusing:
This is because there is an early exit for "file not found" errors, but for any other errors we fall through to where
stat
doesn't exist.Just filing this for future readers.
The text was updated successfully, but these errors were encountered: