# OpenVidu Angular

**URL:** <https://openvidu.discourse.group/t/openvidu-angular/1086>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [June 5, 2020, 5:34am UTC](https://openvidu.discourse.group/t/openvidu-angular/1086 "2020-06-05T05:34:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balint\_Dorner](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/balint_dorner/32/563_2.png) [@Balint\_Dorner](https://openvidu.discourse.group/u/Balint_Dorner)\
**Post date:** [June 5, 2020, 5:34am UTC](https://openvidu.discourse.group/t/openvidu-angular/1086/1 "2020-06-05T05:34:13Z")

</div>

Hi all,

I’d like to use openvidu-angular2.14.

The problem is that the library’s module imports BrowserModule and BrowserAnimationModule.  
As far as I know, libraries should import only CommonModule.

Due to importing BrowserModule, the library cannot be used in feature/lazy loaded modules, because there would be duplicated import of BrowserModule.

Anyone else expected the issue, and has a workaround maybe?

Thanks

---

<div class="post-metadata">

**Author:** ![CSantosM](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/csantosm/32/16_2.png) [@CSantosM](https://openvidu.discourse.group/u/CSantosM)\
**Post date:** [June 5, 2020, 10:49am UTC](https://openvidu.discourse.group/t/openvidu-angular/1086/2 "2020-06-05T10:49:25Z")

</div>

Hello @Balint_Dorner,

I don’t know if this change would have any colateral effect in openvidu-angular.

Basically, you mean openvidu-angular should remove [this two imports](https://github.com/OpenVidu/openvidu-call/blob/e9cd66d590d4d24d24974504737742f3e525747b/openvidu-call-front/projects/openvidu-angular/src/lib/openvidu-angular.module.ts#L70-L71) right?

Could you test if this works?

The steps to follow are:

1.Clone [OpenVidu Call](https://github.com/OpenVidu/openvidu-call)  
2. Remove [BrowserModule and BrowserAnimationModule imports](https://github.com/OpenVidu/openvidu-call/blob/e9cd66d590d4d24d24974504737742f3e525747b/openvidu-call-front/projects/openvidu-angular/src/lib/openvidu-angular.module.ts#L70-L71)  
3. Create library like

```
    cd openvidu-call/openvidu-call-front
    npm install
    npm run build:openvidu-angular
    npm run pack:openvidu-angular

```

1. Install tar.gz generated in your app. You can find it in `openvidu-call/openvidu-call-front/dist`

---

<div class="post-metadata">

**Author:** ![Balint\_Dorner](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/balint_dorner/32/563_2.png) [@Balint\_Dorner](https://openvidu.discourse.group/u/Balint_Dorner)\
**Post date:** [June 9, 2020, 4:27am UTC](https://openvidu.discourse.group/t/openvidu-angular/1086/3 "2020-06-09T04:27:07Z")

</div>

Hi @CSantosM,

It would not have any collateral effect, but it would work properly with lazy loaded modules as well. (Browser and BrowserAnimationModule should only be imported once in an application in App/Core module, otherwise CommonModule is the preferred one.

See at

## Should I import `BrowserModule` or `CommonModule` ?[_link_](https://angular.io/guide/ngmodule-faq#should-i-import-browsermodule-or-commonmodule)

T

Thanks,  
Balint

---

<div class="post-metadata">

**Author:** ![Balint\_Dorner](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/balint_dorner/32/563_2.png) [@Balint\_Dorner](https://openvidu.discourse.group/u/Balint_Dorner)\
**Post date:** [June 12, 2020, 9:52am UTC](https://openvidu.discourse.group/t/openvidu-angular/1086/4 "2020-06-12T09:52:28Z")

</div>

Hi @CSantosM

Have you had possibility to take a look at the above?  
If so, wheat do you think?

Thanks  
Balint

---

<div class="post-metadata">

**Author:** ![CSantosM](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/csantosm/32/16_2.png) [@CSantosM](https://openvidu.discourse.group/u/CSantosM)\
**Post date:** [June 12, 2020, 2:40pm UTC](https://openvidu.discourse.group/t/openvidu-angular/1086/5 "2020-06-12T14:40:38Z")

</div>

Check changes in [commit](https://github.com/OpenVidu/openvidu-call/commit/9bd99d4aec7207f4d0ca225c762b2c630ee73a89)
