Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacement to MediaStreamError #130

Closed
vasharma05 opened this issue Sep 8, 2021 · 14 comments
Closed

Replacement to MediaStreamError #130

vasharma05 opened this issue Sep 8, 2021 · 14 comments

Comments

@vasharma05
Copy link

What is this issue about?

This issue Is about the removal of MediaStreamError in typescript 4.4, as mentioned in microsoft/TypeScript-DOM-lib-generator#1029. Since the file path https://github.com/basst314/ngx-webcam/blob/master/src/app/modules/webcam/domain/webcam-init-error.ts#L3.

Do look into the issue asap.
Waiting for a reply.

Thanks!

@hisham
Copy link

hisham commented Nov 4, 2021

+1. This comes up as an issue with Angular 13 now.

@Mds92
Copy link

Mds92 commented Nov 9, 2021

The same problem

@ChrisLoes
Copy link

same problem. Does anybody has a solution? :/

@vdnprasad
Copy link

vdnprasad commented Nov 11, 2021

Still getting same problem even I've used typescript 4.4 onward and angular cli version is 13.

@chriskinzel
Copy link

@ChrisLoes as a quick fix I added this to my typings.d.ts global types file.

declare global {
  type MediaStreamError = Error;
}

@ChrisLoes
Copy link

already fixed with #134, should only be merged.

@alexrait
Copy link

declare global {
  type MediaStreamError = Error;
}

For this to work, we need to add
export {}
at the top.
But it solved it for now, thank you.

@KandarpRami174
Copy link

"MediaStreamError" change to "EndOfStreamError"

this is work for me

@beyondtheobservableuniverse

@ChrisLoes as a quick fix I added this to my typings.d.ts global types file.

declare global {
  type MediaStreamError = Error;
}

How can i add this to Angular?

@chriskinzel
Copy link

@beyondtheobservableuniverse create a file typings.d.ts under your Angular project src directory and paste into there. Make sure your tsconfig is set to automatically include .d.ts files.

@basst314
Copy link
Owner

basst314 commented Dec 3, 2021

This has been fixed in #134 and is part of version 0.4.1 of this library. Please update to the latest version.

@basst314 basst314 closed this as completed Dec 3, 2021
@jbistis
Copy link

jbistis commented Dec 26, 2021

Does this 0.4.1 require a13? If yes, is there a fix that does not require an upgrade to a13? We are running 12.2.6 with 4.2.4.

@jbistis
Copy link

jbistis commented Dec 26, 2021

basst314, I upgraded to a13.1.2 with typescript 4.5.4 and ngx-webcam 0.4.1. I am still getting the error Cannot find name 'MediaStreamError'. Did you mean 'EndOfStreamError'? What can I do to fix this?

@KillianLu
Copy link

I think that was not fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests