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
If the project file (tsconfig.json) specified on the command line is in a directory other than the current working directory, non-relative path imports aren't correctly resolved.
baseUrl (and paths in tsconfig) are normally relative to the location of tsconfig.json. However, it appears the TypeScript API being called to parse the config file may be behaving differently, instead relying on the path provided to parseJsonConfigFileContent()
If the project file (tsconfig.json) specified on the command line is in a directory other than the current working directory, non-relative path imports aren't correctly resolved.
baseUrl (and paths in tsconfig) are normally relative to the location of tsconfig.json. However, it appears the TypeScript API being called to parse the config file may be behaving differently, instead relying on the path provided to
parseJsonConfigFileContent()
See: https://github.com/evolution-gaming/tsc-silent/blob/master/src/tsc-silent.ts#L114
A local change to instead pass
path.dirname(argv.project)
instead ofprocess.cwd()
appears to fix the issue.The text was updated successfully, but these errors were encountered: