Calling xref-find-definitions using M-. (goto definition) in Emacs will go to the second line of the file (import OtherComponent from "./OtherComponent";) instead of actually going to the file where OtherComponent is defined.
Trying the same thing with typescript-language-server will go to the file where OtherComponent is defined.
With the following code:
Calling
xref-find-definitions
usingM-.
(goto definition) in Emacs will go to the second line of the file (import OtherComponent from "./OtherComponent";
) instead of actually going to the file whereOtherComponent
is defined.Trying the same thing with typescript-language-server will go to the file where
OtherComponent
is defined.More details about this issue can be found here: https://github.com/joaotavora/eglot/issues/243