How to open a file in another project?
Loading our monorepo as a whole into Webstorm was too slow (indexing was slow and Tailwind suggestions were hanging all the time).
So, now I try to open separate projects, e.g. project one is AppA and project two is the ui package inside the monorepo.
Looks good so far.
But: Is there a way to link between the projects, so that e.g. if I “Ctrl+Click” a react component from the ui package, the ui project opens with the right file?
Thank you in advance (probably to Elena :-) ) !
Please sign in to leave a comment.
That's not possible unfortunately, the IDE won't find a definition in a file that is not included in current project.
We have a number of related feature requests - https://youtrack.jetbrains.com/issue/WEB-50009/npm-yarn-workspaces-workspace-dependencies-marked-as-not-installed-when-opening-a-package-as-a-project, https://youtrack.jetbrains.com/issue/WEB-50010/Feature-request-better-support-for-yarn-npm-workspaces, https://youtrack.jetbrains.com/issue/WEB-65217/Navigation-in-monorepo-projects. Unfortunately we don't have a solution right now.