# Proper way install vue package using app.use?

**URL:** <https://community.weweb.io/t/proper-way-install-vue-package-using-app-use/10403>\
**Category:** Developer corner\
**Tags:** vue\
**Created:** [August 23, 2024, 2:13am UTC](https://community.weweb.io/t/proper-way-install-vue-package-using-app-use/10403 "2024-08-23T02:13:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iqbal](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@iqbal](https://community.weweb.io/u/iqbal)\
**Post date:** [August 23, 2024, 2:13am UTC](https://community.weweb.io/t/proper-way-install-vue-package-using-app-use/10403/1 "2024-08-23T02:13:53Z")

</div>

Hi all, currently building vue component wrapping primevue package, but I notice that app.use sometime fails in dev mode, is there proper way to install the package? I tried update the component key using setTimeout onMounted but to no avail, In my case theme is sometimes not loaded.

```auto
<script>
import Aura from '@primevue/themes/aura';
import PrimeVue from 'primevue/config';

export default {
    beforeCreate: function () {
        this.$.appContext.app.use(PrimeVue, { theme: { preset: Aura } });
    },
};
</script>

```
