# How to use Angular to create PexRTC examples

**URL:** <https://community.pexip.com/t/how-to-use-angular-to-create-pexrtc-examples/215>\
**Category:** General\
**Created:** [October 3, 2023, 11:03am UTC](https://community.pexip.com/t/how-to-use-angular-to-create-pexrtc-examples/215 "2023-10-03T11:03:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yiqun](https://avatars.discourse-cdn.com/v4/letter/y/b38774/32.png) [@yiqun](https://community.pexip.com/u/yiqun)\
**Post date:** [October 3, 2023, 11:03am UTC](https://community.pexip.com/t/how-to-use-angular-to-create-pexrtc-examples/215/1 "2023-10-03T11:03:46Z")

</div>

I found the @types/pexrtc package in npm, but I don’t know how to import it to my Angular project after I installed it with npm install @types/pexrtc.

When I try to import pexrtc,and vscode shows error  
Module not found: Error: Can’t resolve ‘pexrtc’ in ‘\src\app\services’  
or  
node\_modules/@types/pexrtc/index.d.ts’ is not a module.

---

<div class="post-metadata">

**Author:** ![marcos.cereijo](https://dub1.discourse-cdn.com/flex005/user_avatar/community.pexip.com/marcos.cereijo/32/14_2.png) [@marcos.cereijo](https://community.pexip.com/u/marcos.cereijo)\
**Post date:** [October 11, 2023, 2:11pm UTC](https://community.pexip.com/t/how-to-use-angular-to-create-pexrtc-examples/215/2 "2023-10-11T14:11:45Z")

</div>

Hi yiqun,

I never used this package before, but that the best approach is to use the package `@pexip/infinity`. You can do the same stuff than with PexRTC and you have the typings.

You have here the documentation: [@pexip/infinity | Pexip Developer Portal](https://developer.pexip.com/docs/api/npm%20packages/infinity/)

And you have also a React tutorial, but you can apply the same concepts to Angular: [Introduction | Pexip Developer Portal](https://developer.pexip.com/docs/tutorials/web/npm-packages/introduction)

Regards,
