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
tsc-alias throws a File undefined not found exception when extending a tsconfig which has been installed via Yarn 2
Expected Behavior tsc-alias builds successfully when my tsconfig extends another tsconfig
Current Behavior tsc-alias throws a file not found error when when my tsconfig extends another tsconfig installed which is installed via Yarn 2 (plug n play)
I ran into this same issue and did some digging into tsc-alias. From my understanding, it appears the resolveTsConfigExtendsPath in src/helpers/config.ts expects a node_modules folder to exist somewhere in the directory hierarchy when resolving the extends field (via the mylas package). When using Yarn versions >= 2, Yarn uses it's PnP API by default for resolving modules, and does not create a node_modules directory. I have not verified that this is the only location which may need changes.
Changing the value of the nodeLinker key to node-modules in my .yarnrc.yml and rerunning yarn to reinstall the dependencies fixed the issue (but does reintroduce the node_modules folder, which may be undesirable in some setups).
tsc-alias throws a
File undefined not found
exception when extending a tsconfig which has been installed via Yarn 2Expected Behavior
tsc-alias
builds successfully when my tsconfig extends another tsconfigCurrent Behavior
tsc-alias
throws a file not found error when when my tsconfig extends another tsconfig installed which is installed via Yarn 2 (plug n play)Steps to reproduce
"extends": "@tsconfig/recommended/tsconfig.json"
tsc-alias
Example Repo
https://github.com/basal-luke/tsc-alias-yarn-issue
The text was updated successfully, but these errors were encountered: