hosseinmd / react-signalr

MIT License
43 stars 14 forks source link

Error with @microsoft/signalr 8.0 #34

Closed fdcastel closed 10 months ago

fdcastel commented 1 year ago

When using @microsoft/signalr 8 I'm getting this error on build.

error TS2322: Type 'signalR.HubConnection | null' is not assignable to type 'import("./src/ts/deucalion-ui/node_modules/@microsoft/signalr/dist/esm/HubConnection").HubConnection | null'.
  Type 'HubConnection' is missing the following properties from type 'HubConnection': _statefulReconnectBufferSize, _sendCloseMessage, _createCloseMessage

Related: https://github.com/hosseinmd/react-signalr/issues/28

fdcastel commented 11 months ago

@hosseinmd could you please provide a new version with a similar fix you made in the previous version?

aukgit commented 10 months ago

Please upgrade to the latest version @hosseinmd , if you don't support then, please mention it clearly in your docs, as it is misleading and wasting a lot of time.

You should mention clearly which version you support and which you don't.

hosseinmd commented 10 months ago

Fixed: v0.2.19 In this version, SignalR has added to peer dependencies list

aukgit commented 10 months ago

Thank you @hosseinmd