Skip to content

Why does resolveMainPath wind up trying to lstat my "User" folder in Windows? #44752

Answered by aduh95
iansul-ms asked this question in General
Discussion options

You must be logged in to vote

You might be able to workaround the issue by using --preserve-symlinks-main (and/or --preserve-symlinks). Hopefully the docs explains why it's doing that well enough:

By default, when Node.js loads a module from a path that is symbolically linked to a different on-disk location, Node.js will dereference the link and use the actual on-disk "real path" of the module as both an identifier and as a root path to locate other dependency modules.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iansul-ms
Comment options

Answer selected by iansul-ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants