tsc-alias icon indicating copy to clipboard operation
tsc-alias copied to clipboard

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

Open lrobot opened this issue 3 years ago • 4 comments

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 avatar Mar 23 '23 14:03 lrobot

+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

NinjaInShade avatar Apr 30 '23 15:04 NinjaInShade

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

frontendphil avatar Jul 03 '23 13:07 frontendphil

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 avatar Jul 03 '23 22:07 justkey007

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.

justkey007 avatar Jul 03 '23 22:07 justkey007