-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Bug] URL instances are not supported by the FS layer #899
Labels
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This issue reproduces on master:
|
demurgos
added a commit
to demurgos/turbo-gulp
that referenced
this issue
Feb 5, 2020
The virtual FS used by Yarn does not support URL instances. This commit provides a temporary workaround by normalizing all paths to strings before calling into the fs module.
demurgos
added a commit
to demurgos/turbo-gulp
that referenced
this issue
Feb 5, 2020
- **[Breaking change]** Drop support for `customTypingsDir` dir. - **[Fix]** Update dependencies. - **[Fix]** Add workaround for yarnpkg/berry#899.
3 tasks
3 tasks
1 task
3 tasks
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
The virtual FS layer does not support
URL
instances for files. Passing aURL
causes an internal error as it tries to treat it as a string. This diverges from Node's FS API and breaks packages identifying files through URL instances.To Reproduce
Full reproduction repository: https://github.com/demurgos/yarn-fs-url-bug
Here is the error I get:
Screenshots
N/A
Environment if relevant (please complete the following information):
Additional context
Node supports passing URL instances to the
fs
API since Node 8. Usingfile:
URLs internally allows packages to avoid dealing with platform-specific path representations. Please also note that this bug breaks all uses of thefs
module with URLs, even when writing regular files (unrelated to dependencies).The text was updated successfully, but these errors were encountered: