SignalR | Electron | CookieJar is creating issue with Electron .Net App + Angular 14
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 290
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
I am using Electron.Net as backend and Angular as frontend to initiate System App. When I am trying to setup connection with HubConnectionBuilder, I am getting issue:
CookieJar is not a constructor
For Further research, I got to realize that this issue arises due to its requirement of fetch-cookie in DefaultHttpClient.ts file in @microsoft/signalR package. For now, I have used downgraded version of it, but will be looking for solution with latest version 8.0.0.
My frontend code is like below:
this.hubConnectionBuilder = new HubConnectionBuilder()
.configureLogging(LogLevel.Information)
.withUrl("http://localhost:4200/ABCD")
.build()
### Expected Behavior
_No response_
### Steps To Reproduce
_No response_
### Exceptions (if any)
_No response_
### .NET Version
6.0.414
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.