0

I'm getting compile time error while connecting RTCPeerConnection.

/node_modules/@types/webrtc/RTCPeerConnection.d.ts (316,30): Cannot find name 'RTCSignalingState'.

const servers = null;
this.pc1 = new RTCPeerConnection(servers);

I have installed npm install --save-dev @types/webrtc is there anything new I need to install?

Zoran Pandovski
  • 2,312
  • 14
  • 24
Viru
  • 1
  • 1
  • 8

1 Answers1

0

So finally i fixed the issue. The issue is the version. the npm webrtc package version should be match with your typescript version. i have used typescript version 2.0.3 and equalent version for webrtc is 0.0.21.

Viru
  • 1
  • 1
  • 8