Uno.Samples
Uno.Samples copied to clipboard
Upgraded WebRTC sample's TS package - PeerConnection broken
After upgrading WebRTC demo's Microsoft.TypeScript.MSBuild
package reference from 4.2.3
to 4.6.2
, I got the following error:
[...]\WebRTC\WebRTC.Wasm\ts\PeerConnection.ts(32,39): error TS2304: Build:Cannot find name 'RTCErrorEvent'
That's because the corresponding interface got removed with TypeScript 4.4 as was announced here: microsoft/TypeScript-DOM-lib-generator/#1029
Please fix the sample by first updating it to the latest packages available & then adapt PeerConnection
's onChannelError
method.