Replies: 1 comment
-
After some playing around. It seems like {
compilationOptions: {
...
rootDir: ".",
baseUrl: "app",
paths: {
"@/*": ["../assets/*"],
"@utils/*": ["./utils/*"]
}
}
}
{
compilationOptions: {
...
rootDir: ".",
baseUrl: ".",
paths: {
"@/*": ["./assets/*"],
"@utils/*": ["./app/utils/*"]
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a tsconfig with
rootDir
set to.
andbaseUrl
set toapp
. When I runtsc-alias
, it generates invalid path can do not replace the imports. But when I setrootDir
andbaseUrl
to the same path,tsc-alias
works perfectly. How does the value of therootDir
affect the replacers? DorootDir
andbaseUrl
have to the same for it to work?Beta Was this translation helpful? Give feedback.
All reactions