0

I am working on Angular 12 and trying to integrate a feature of video calling, To achieve that I am using below libraries. But I am getting two errors for RecordingState;

"amazon-chime-sdk-js": "^1.22.0",
"amazon-connect-chatjs": "^1.1.4",

Error

node_modules/amazon-chime-sdk-js/build/mediarecording/MediaRecording.d.ts:27:21 - error TS2304: Cannot find name 'RecordingState'.

27     recordingState: RecordingState;
                       ~~~~~~~~~~~~~~


Error: node_modules/amazon-chime-sdk-js/build/mediarecording/WebMMediaRecording.d.ts:20:27 - error TS2304: Cannot find name 'RecordingState'.

20     get recordingState(): RecordingState;

To resolve the above error I tried below command but its not helpful.

npm install @types/dom-mediacapture-record

I also followed the link here https://github.com/aws/amazon-chime-sdk-js/issues/244 to resolve same but no luck. Any help would be appreciated.

Also to mention one thing I created a dummy project in Angular 8 and the same was working over there without any error. But for some reason I cannot downgrade my Angular version. Any help would be of great appreciation.

tyler
  • 418
  • 4
  • 14

0 Answers0