Reputation: 11
I want to implement audio recording functionality in my angular app using media recorder but I am getting the following error:
error TS2304: Cannot find name 'MediaRecorder'
Does anyone has solution for this.
Upvotes: 0
Views: 1512
Reputation: 392
Assuming you are using Media Recorder
Go to your tsconfig file if you dont have one create by npx tsc --init
{
"compilerOptions": {
// ......your other options
"lib": ["dom", "dom.iterable", "esnext"]
}
}
Upvotes: 1