-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
TypeError: Path must be a string. Received undefined #181
Comments
@ljharb could we get this v1.9.0...simonhaenisch:fix-path-must-be-string out as patch
|
@simonhaenisch it's already in v1.9.0 - see 765b3cb |
It's not in the https://github.com/browserify/resolve/blob/v1.9.0/lib/async.js#L49 |
The |
So the problem is:
Expected behavior: if it's not a real path, pass the original Does that clarify it? |
@simonhaenisch i'm super on board with releasing a v1.9.1 that fixes this for you; is there any chance you could make a PR into v1.9.0 (not master) with a failing test case? |
Please see v1.9.0...simonhaenisch:fix-path-must-be-string, here is the test results without and with the fix. Before:
After:
(ran with Node v8.15.0 on macOS) My branch is based of I don't have a Windows instance to run the tests on btw. |
@ljharb could you please create a branch based of the |
@simonhaenisch sorry for the delay; done! https://github.com/browserify/resolve/tree/1.9.0-next |
Thanks! PR is open (: |
Merged into the next v1 release (will be v1.10.0); not yet merged into master. When it is, this will close. |
- [New] `core`: add `worker_threads` in v11.7+ - [Fix] `sync`/`async`: when package.json `main` is not a string, throw an error (#178) - [Fix] TypeError: Path must be a string. Received undefined (#181) - [Tests] up to `v11.6`, `v10.15`, `v8.15`, `v6.16` - [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`
v1.10.0 is released; merged into master with ea7d38d |
Following up on #177 (comment) (not sure whether it's related),
1.9.0
has this code:resolve/lib/async.js
Lines 47 to 50 in 254bb40
which throws an error if
fs.realpath
fails and the error isENOENT
, because thenrealStart
is not defined.This was already fixed in master in a commit prior to the release
1.9.0
(2321cd4#diff-688ede0ee2da1fa3d89f2fc485f39273), however has not yet been released.Here is the same part with the fix on master:
resolve/lib/async.js
Lines 58 to 61 in 7c6afab
Can we get this fix out any time soon?
The text was updated successfully, but these errors were encountered: