-
Notifications
You must be signed in to change notification settings - Fork 13
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
Getting DOMError while doing ng serve in angular #86
Comments
Even I have noticed the same error , We need to replcae the DomError to DomException. Because the DOMError is depcrecated now. Please remove and update the files wherever the Error type is declared as DOMError. This is causing the build issue in our local. Please do the needful. |
@pawanjaiswal182 @uk8566 Thanks for submitting. Are you seeing this on other frameworks outside of Angular? |
@charliesantos I'm having the same error in a react app. It looks like the interface DOMError was removed starting with typescript 4.4 |
@pawanjaiswal182 any resolution ? |
Hi @charliesantos ! |
We can achieve this by declaring type DOMError in your angular repo |
Thanks for the ping everyone and apologies for the late response. I submitted an internal ticket to fix this but it's currently low in priority due to other higher priority items. Please use the workaround @umair-optevus provided for now. Thank you. |
created new file with src/typings/dom-error.d.ts and i don't want to use skipLibCheck: true |
Describe the bug
Getting DOMError while doing ng serve in angular.
Error: node_modules/@twilio/rtc-diagnostics/es5/lib/errors/DiagnosticError.d.ts:10:15 - error TS2304: Cannot find name 'DOMError'.
10 domError: DOMError | DOMException | undefined;
~~~~~~~~
Error: node_modules/@twilio/rtc-diagnostics/es5/lib/errors/DiagnosticError.d.ts:27:28 - error TS2304: Cannot find name 'DOMError'.
27 constructor(domError?: DOMError | DOMException, message?: string);
× Failed to compile.
To Reproduce
Install the @twilio/rtc-diagnostics and then do ng serve in angular.
Expected behavior
It should build the project without any error.
Environment
"@twilio/rtc-diagnostics": "^1.0.1",
The text was updated successfully, but these errors were encountered: