Multiple nodejs projects in the same git repo (aka mono-repo), How do I configure Webstorm?
Does WebStorm support opening a mono-repo from the root of the git repo? If so, how do I tell Webstorm that there are several projects in the same Window?
I have a mono-repo with two sub-directories for front-end and back-end of a web app.
Front-end is ReactJS
Backend is NodeJS with Typescript.
Is there anything I need to do to tell Webstorm that there are multiple projects or does it “just work”?
The only issue I know of is making sure webstorm is using the correct tsconfig.json for syntax checking for each subproject.
My previous experience was using IntelliJ Idea with Java and Maven which required each project to be managed so IntelliJ would know where the “sources” root was in order for proper Java compiling.
I'm not so sure that anythink like this happens in Javascript except that the project.json and node_modules mark the top of projects.
I'm not sure it's a one to one comparison.
If there is something I should do in order to “play nice” with Webstorm please let me know.
Please sign in to leave a comment.
It should just work, no special steps are required
If you have any problems with this setup, please let us know
Elena Pogorelova
I'm having multiple sub directories with `package.json` and their `node_modules` and the folders are recognized as `Library Root` but I still have this kind of error on all dependencies that are installed.
TS2792: Cannot find module xxxx. Did you mean to set the moduleResolution option to node, or to add aliases to the paths option?
The error comes from the Typescript compiler service, not from the IDE. It must be a configuration issue. Please check your Typescript configuration files - the built-in compiler service uses the nearest
tsconfig.*.json
file the current*.ts
file is included in, traversing the folders tree up to the project root.tsconfig.*.json
here is a file with a name matching one of the patterns configured in Settings | Editor | File Types | TypeScript Config file type.