I am currently searching for a resolution to this issue without making any upgrades to Angular or its dependencies, as it could potentially impact other parts of the code base
https://i.sstatic.net/Jeb55.png
package.json
{
"name": "angular4",
"version": "1.0.0",
"description": "QuickStart package.json from the documentation for visual studio 2017 & WebApi",
"scripts": {
"start": "tsc && concurrently \"tsc -w\" \"lite-server\" ",
...
// (truncated for brevity)
},
...
}
https://i.sstatic.net/fDcbH.png
search.component.ts
import { Subject, Subscription } from "rxjs";
import { WebSocketSubject } from "rxjs/observable/dom/WebSocketSubject";
import { webSocket } from "rxjs/observable/dom/webSocket";
public openWebSocket = async (uniqueId: string) => {
const url: string = this.commonService.wssurl + '/api/ABCWebSocket/' + uniqueId;
let socket: WebSocketSubject<any> = webSocket(url);
// (truncated for brevity)
};
code snippet causing the error - Guess the Subscribe part throws the error as when commenting it out it works fine https://i.sstatic.net/lrtZY.png
The backend is a .Net project btw. Went through few answer in few forums but did not get what I expect as am not trying to update the packages