I am faced with a dilemma in my programming project where I have a node server and a create react app in the same repository. The issue arises when trying to use one tsconfig.json file for both applications. While CRA requires module: "esnext"
, the backend server cannot boot without module: "commonjs"
.
Could someone shed some light on this situation? How can I ensure that both applications use the same module setting? Is there a way to set it universally for both? Do I need separate tsconfig files?