hello,
I'm developing an electron app in typescript that breaks in compilation with the following error message (technically there're five of them, but they are all the same type of error, just conflicting with different parts)
node_modules/@types/body-parser/index.d.ts(12,23): error TS4090: Conflicting definitions for 'node' found at '.../node_modules/@types/node/index.d.ts' and './node_modules/electron/node_modules/@types/node/index.d.ts'. Consider installing a specific version of this library to resolve the conflict.
So this means that I have two type libraries for 'node' - however, I have not included a @types/node library in my package.json (as it is present in electron by default apparently). Therefore, I am utterly confused and lost on how to fix this.
I tried removing node_modules and yarn.lock and rebuilding the modules from scratch, removing either @types/node or electron/.../@types/node, even removing all code these refer to and gradually rebuilding them again. None worked. I also tried to use the solution mentioned here: https://github.com/electron/electron/issues/10167 but to no avail.
In the error message there is written 'Consider installing a specific version of this library to resolve the conflict' - how do I do that?
Hopefully that's enough info to go on,
Cheers