Sam Hulick
08/08/2021, 10:26 PMtsconfig.path
weirdness going on, specifically with paths
aliases. I have this in my config:
{
"compilerOptions": {
"baseUrl": "src",
"paths": {
"@libs/*": ["libs/*"]
},
// ..etc
and yet when I try to use this shortcut in my code:Frank
sst build
. Do you also get the same error on sst build
in this case?Sam Hulick
08/08/2021, 10:35 PMSam Hulick
08/08/2021, 10:35 PMDavid Martin
08/08/2021, 10:40 PMSam Hulick
08/08/2021, 10:42 PMSam Hulick
08/08/2021, 10:44 PMSam Hulick
08/08/2021, 10:44 PMFrank
Frank
Sam Hulick
08/08/2021, 10:47 PMSam Hulick
08/08/2021, 10:47 PMSam Hulick
08/08/2021, 10:50 PMsrc/
but not in infra/
Sam Hulick
08/08/2021, 10:50 PM"include": ["src"]
Sam Hulick
08/08/2021, 10:51 PM{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@libs/*": ["src/libs/*"]
},
// snip
},
// snip
"include": ["infra", "src"]
}
Sam Hulick
08/08/2021, 10:57 PM"lib"
was supposed to be included in there. I renamed mine to infra
to be clearer, but.. I guess I must’ve removed that from the include list. and hey, now i”m getting type-checking on my infrastructure code now 😄Frank