Find Usages doesn't seem to work across yarn workspaces

I have a bunch of Typescript and Javascript modules recently converted to a monorepo and yarn workspaces. Mostly it seems to work well. But if I do Find Usages or refactorings such as rename, I only get usages in the same module. Scope is set to "Project and Libraries" but I have tried lots of different settings with no change in behavior. WebStorm seems to know about the module dependencies, since Go To...Declaration (ctrl-B) works correctly across modules. What am I missing? I'm on WebStorm 2018.3 on Windows, if it matters.

1 comment

I think I finally found the cause. I had previously used "npm link" for some of these projects, so I had global versions of some. Removing those appears to have resolved this.

1

Please sign in to leave a comment.