If you have @types/node installed, you might naively try to go-to-definition on node in the following code if you're trying to understand things better.
Similarly to what used to happen with go-to-definition on a non-module file (#41861), we don't find a corresponding symbol for the module and just give up.
However, we were able to get this partially working for relative source files in #42539. We should be able to still make this work for package files as well.
If you have
@types/nodeinstalled, you might naively try to go-to-definition onnodein the following code if you're trying to understand things better.Similarly to what used to happen with go-to-definition on a non-module file (#41861), we don't find a corresponding symbol for the module and just give up.
However, we were able to get this partially working for relative source files in #42539. We should be able to still make this work for package files as well.