You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my monorepo project, I'm encountering this exact error myself.
However, I find that it only happens when target in compilerOptions is set.
Upon removing the option, the error vanishes.
TypeScript Version: typescript@3.3.0-dev.20190119
Search Terms: symlink node_modules symbolic link
Code
Consider a project with the following file.
In addition the
node_modules
folder is symlinked to an external folder named../<path>/node_modules_cli/
.Expected behavior:
The compile to work correctly.
Actual behavior:
Which makes no sense since the
node_modules
directory does in fact contain all of the necessary modules.Moving the destination folder from
../<path>/node_modules_cli/
to../<path>/node_modules/
fixes everything, and the compile goes through just fine:I've tested and confirmed this behavior with both relative and absolute symbolic links.
Playground Link: n/a
Related Issues:
The text was updated successfully, but these errors were encountered: