Go to definition while using aliases in CRA project

Hello everyone,
I have been using LSP for some time now, but recently I added alias paths to my project. Unfortunately vim.lsp.buf.definition() doesn’t know how to use aliases (or I have configured something wrong).
When I declare relative path, the function works perfectly.
Has anyone had similar problem? Do you have any suggestions on how to overcome this?

Thank you for the answers

What’s an alias path? I am pretty sure this would have to be resolved language server side, although you could always inject some custom logic by overriding the definition handler to do whatever you want with the URI returned by the language server.