Hello stackoverflow community, i am encountering a rather strange behaviour and i do not know whats causing this. I did a refactoring of my codebase last week where i mainly changed some frontend code and removed some unused dependencies. Since then the compiler seems to miss compilation errors. E.g when i call a function that is not defined or use an undefined it will underline it in the IDE but when i run react-app-rewired start it compiles without any errors. When i then open the page in my browser it throws a runtime error "XXX is not defined" as shown in the images below. Compiles just fine despite undefined function(dummyFunction) being called Error in Browser
It does not seem to catch any error even when i call a function with too many or wrong arguments or if a render a component with required props missing.
When i check out to the commit before the refactoring it works just fine. I already went through all of my changes but i did not find anything that might cause this problem, as i mainly refactored frontend components and some functions so i am pretty clueless on how to solve this.
These are the dependencies i removed:
"@material-ui/core": "^4.11.2",
"@material-ui/lab": "^4.0.0-alpha.57",
"@material-ui/pickers": "^3.2.10",
"chrono-node": "^2.1.10",
"comlink": "^4.3.0",
"element-resize-detector": "^1.2.1",
"fast-time-input": "^0.1.10-beta",
"flare-react": "^1.0.7",
"history": "4.10.1",
"json-server": "0.16.3",
"material-ui-feature-discovery-prompt": "^1.0.1",
"material-ui-popup-state": "^1.7.1",
"mui-rte": "^1.26.2",
"pdsl": "^4.1.0",
"react-easy-marquee": "^1.1.4",
"react-reflex": "^3.1.0",
"react-router-transition": "^2.0.0",
"react-script": "^2.0.5",
"react-time-picker": "^4.1.1",
"react-timezone-select": "^1.0.7",
"react-virtualized": "^9.22.3",
"react-virtualized-auto-sizer": "^1.0.3",
"tiny-types": "^1.16.1",
I already tried re-adding the dependencies i have removed but this does not seem to solve the problem either.
I also checked my tsconfig which i did not change at all so i doubt that there is a problem there.
Does anyone know where this problem might come from?
We are using react with typescript and babel and webpack.