I wonder if this is a bug from craco-alias or typescript.
I would like to type @layout to resolve to ./layout. then adding a forward / would continue the path.
e.g.
@layout --> ./layout/index.ts@layout/main --> ./layout/main.ts
So in tsconfig.json I did
"paths": {
"@layout": ["./layout"],
}
But it doesn't work in both case. For the above use case to work, I should add kind of a duplicate
Hi
I wonder if this is a bug from craco-alias or typescript.
I would like to type
@layout
to resolve to./layout
. then adding a forward/
would continue the path. e.g.@layout
-->./layout/index.ts
@layout/main
-->./layout/main.ts
So in
tsconfig.json
I didBut it doesn't work in both case. For the above use case to work, I should add kind of a duplicate