Hi,
I would like to use TS paths options:
{
"compilerOptions": {
...
"paths": {
"@config/*": ["./src/config/*"],
"@controllers/*": ["./src/controllers/*"],
"@helpers/*": ["./src/helpers/*"],
"@models/*": ["./src/models/*"],
"@services/*": ["./src/services/*"],
"@templates/*": ["./src/templates/*"],
"@utils/*": ["./src/utils/*"]
}
},
...
}
How can I run etsc so that it recognizes those paths ? For now I get the error:
Error: Cannot find module '@services/logger'
Thanks !
Hi,
I would like to use TS paths options:
{ "compilerOptions": { ... "paths": { "@config/*": ["./src/config/*"], "@controllers/*": ["./src/controllers/*"], "@helpers/*": ["./src/helpers/*"], "@models/*": ["./src/models/*"], "@services/*": ["./src/services/*"], "@templates/*": ["./src/templates/*"], "@utils/*": ["./src/utils/*"] } }, ... }How can I run etsc so that it recognizes those paths ? For now I get the error:
Thanks !