Describe the bug (or not bug?)
yarn@berry doesn't resolve modules from root node_modules for workspaces when use nodeLinker: node-modules mode like [email protected].
To Reproduce
I created demo with description here https://github.com/inomdzhon/example-monorepo-with-yarn-berry
That's expected - root dependencies are not "inherited" by their child workspaces, it was just an unfortunate consequence of the node_modules layout. Relying on that was problematic, because if one of your transitive dependencies happened to depend on TypeScript (for example), suddenly you'd stop using the top-workspace version to instead use your transitive dependency's one.
Check this FAQ entry to see how to safely share tsc between multiple workspaces:
https://yarnpkg.com/advanced/qa#how-to-share-scripts-between-workspaces