Skip to content
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

tsc-alias error: File undefined not found, when in function: loadConfig() #168

Open
lrobot opened this issue Mar 23, 2023 · 4 comments
Open
Assignees

Comments

@lrobot
Copy link

lrobot commented Mar 23, 2023

loadConfig() function report error:
tsc-alias error: File undefined not found
when tsconfig.json has non-local config extends
{
"extends": "@tsconfig/node18/tsconfig.json",
}
"non-local config extends" can reference here: https://github.com/tsconfig/bases/#recommended-tsconfigjson

@NinjaInShade
Copy link

NinjaInShade commented Apr 30, 2023

+1, I have gotten this too, would be good to see a fix. My build still outputs, I get an error in console alongside it and paths don't get transformed

@frontendphil
Copy link

It looks like this library could make use of https://www.npmjs.com/package/get-tsconfig

@justkey007 justkey007 self-assigned this Jul 3, 2023
@justkey007
Copy link
Owner

It looks like this library could make use of https://www.npmjs.com/package/get-tsconfig

This package completely breaks project 1 and 20 tests, you can try it and see.

@justkey007
Copy link
Owner

loadConfig() function report error: tsc-alias error: File undefined not found when tsconfig.json has non-local config extends { "extends": "@tsconfig/node18/tsconfig.json", } "non-local config extends" can reference here: https://github.com/tsconfig/bases/#recommended-tsconfigjson

@lrobot What you are trying to do has already been successfully tested here. You can leave us the link of an example project that fails and reproduces this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants