Working on a large typescript project, we decided to move the code to monorepo with workspaces .
We use webpack to build and build, and everything works well (especially binding between local modules / packages).
Since the workspaces of the yarn will store most of the node_modules in the root folder of mono repo, IDEs (IntelliJ, as well as VSCode) have problems importing into any node_modules when encoding inside an "internal" project (the so-called "package" monorepo).
The strange thing is that the import is unknown, but on the other hand, most of the time you can go to the correct source / definition inside the IDE for the same import if you write it manually.
We tried to tell IntelliJ to look into another folder for node_modules, but still not satisfied.
Please share your experience with the yarn / monorepo workspaces (e.g. lerna) and how you develop code living in these monorepos.
What IDE are you using?
Have you added any special configurations to the IDE and / or package.json, tsconfig.json?
source share