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/*"]
}
}
} |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have a tsconfig with
rootDirset to.andbaseUrlset toapp. When I runtsc-alias, it generates invalid path can do not replace the imports. But when I setrootDirandbaseUrlto the same path,tsc-aliasworks perfectly. How does the value of therootDiraffect the replacers? DorootDirandbaseUrlhave to the same for it to work?All reactions