Uno.Samples icon indicating copy to clipboard operation
Uno.Samples copied to clipboard

Upgraded WebRTC sample's TS package - PeerConnection broken

Open Eagle3386 opened this issue 2 years ago • 0 comments

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.

Eagle3386 avatar Mar 21 '22 15:03 Eagle3386