When trying to launch my web app using 'ng serve', I am encountering an error that I cannot seem to resolve. The error message is quite cryptic, and despite updating dependencies and searching through similar questions, I am still unable to pinpoint the exact cause. I am unsure if it is related to a compiler error, TypeScript, or a dependency issue.
[error] TypeError: Object prototype may only be an Object or null: undefined at setPrototypeOf () at Object.__extends (C:\Users\9090\Documents\project\FR\node_modules@angular\compiler-cli\node_modules\tslib\tslib.js:68:9) ... ... ... at Module._compile (internal/modules/cjs/loader.js:1138:30)
Below is an excerpt from my 'package.json' file:
{
"name": "Client",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build --prod",
...
...
...
"typescript": "~3.4.5"
}
}