User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
In my Angular 2 project, I'm trying to use typescript and @types/webrtc. @types/webrtc is at version 0.0.21 If I use any typescript version higher than 2.1.5, I get a lot of compilation errors for webrtc.
Currently there is no official solution (or, at least, I have not found it). But there is a good workaround that it allows you to continue working!
As you can see in this issue in DefinitelyTyped Github web, Varius suggests add a marvelous option over compilerOptions in your tsconfig.json, to avoid library check.
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that
you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice
sessions to improve your knowledge and scores.
manpreet
Best Answer
3 years ago
In my Angular 2 project, I'm trying to use typescript and @types/webrtc. @types/webrtc is at version 0.0.21 If I use any typescript version higher than 2.1.5, I get a lot of compilation errors for webrtc.
Here is my package.json file:
Here are the compilation errors: