WS doesn't have suggestions for ts alias that goes deeper then src.

I have these aliases: (tsconfig)

"baseUrl": "./",
"paths": {
"features/*": ["./src/features/*"],
"selectors/*": ["./src/redux/selectors/*"]
},

features work fine, but `selectors` don't. 

TS don't show any errors and code works fine, I just don't know how can I set this kind of aliases. 

I used snowpack, but I don't think it makes any difference.

little note: for some reason the second layer files shows pretty good: 

Here's the repo (to easy reproduce): https://github.com/OlegBrony/ts-aliases-error

 

0
2 comments

Submitted to developers as https://youtrack.jetbrains.com/issue/WEB-48755, please follow it for updates

1

thanks, Elena. I'll be waiting.

0

Please sign in to leave a comment.