# \[Plugin\] Conflict when using angular bootstrap

**URL:** <https://discuss.elastic.co/t/plugin-conflict-when-using-angular-bootstrap/74507>\
**Category:** Kibana\
**Created:** [February 9, 2017, 1:26pm UTC](https://discuss.elastic.co/t/plugin-conflict-when-using-angular-bootstrap/74507 "2017-02-09T13:26:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![algheorghe](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@algheorghe](https://discuss.elastic.co/u/algheorghe)\
**Post date:** [February 9, 2017, 1:26pm UTC](https://discuss.elastic.co/t/plugin-conflict-when-using-angular-bootstrap/74507/1 "2017-02-09T13:26:52Z")

</div>

Hello,

I am working on a docView plugin and I'm trying to import an external NPM module which actually is a angular.module. The module I am trying to import, have some useful services and directives in it, directives based on angular-ui-bootstrap version ^2.2.0. In the newer versions of angular bootstrap the $tooltip have been replaced with $uibTooltip, so when testing the plugin I get an error message:  
`Uncaught Error: [$injector:modulerr] Failed to instantiate module kibana due to: Error: [$injector:unpr] Unknown provider: $tooltipProvider`  
My opinion is that the angular bootstrap versions conflict and this is why I get the error message. Can someone explain to me a workaround this one?

Thank you,  
Alin

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [February 9, 2017, 7:05pm UTC](https://discuss.elastic.co/t/plugin-conflict-when-using-angular-bootstrap/74507/2 "2017-02-09T19:05:23Z")

</div>

Hi Alin,

If your plugin has dependencies which conflict with those in Kibana, it sounds like you have three options:

1. Fork Kibana and update the dependencies (not recommended because this will be very difficult for you to maintain as we develop Kibana).
2. Create a PR into Kibana which updates angular-ui-bootstrap to the version you need (may be somewhat difficult, but not impossible).
3. Use a different dependency or fork the dependency and downgrade the version of angular-ui-bootstrap it uses (not sure how hard this will be; I think you're in a better position to determine this).

I'd recommend trying #2 first. I'd be happy to review your PR and help you get it merged in, just tag me @cjcenizal when you submit it. If that doesn't work, I'd suggest #3. Sometimes taking control over a dependency is best because you can decide exactly what code makes it into your codebase. #1 is the nuclear option and not recommended.

Hope this helps!

Thanks,  
CJ

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 9, 2017, 7:05pm UTC](https://discuss.elastic.co/t/plugin-conflict-when-using-angular-bootstrap/74507/3 "2017-03-09T19:05:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
