Closed vasharma05 closed 2 years ago
+1. This comes up as an issue with Angular 13 now.
The same problem
same problem. Does anybody has a solution? :/
Still getting same problem even I've used typescript 4.4 onward and angular cli version is 13.
@ChrisLoes as a quick fix I added this to my typings.d.ts global types file.
declare global {
type MediaStreamError = Error;
}
already fixed with #134, should only be merged.
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.
"MediaStreamError" change to "EndOfStreamError"
this is work for me
@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?
@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.
This has been fixed in #134 and is part of version 0.4.1 of this library. Please update to the latest version.
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.
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?
I think that was not fixed
What is this issue about?
This issue Is about the removal of
MediaStreamError
in typescript 4.4, as mentioned in https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/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!