굿바베베

Pinia store issue with Vite + Vue + Vuetify project 본문

개발꿀팁/VUE

Pinia store issue with Vite + Vue + Vuetify project

굿바베베 2023. 3. 27. 00:59

i was getting that error after adding vuetify to my vue3 project when I tried to use pinia. 

And, I solved this problem with below solution. 

 

Add .use(createPinia()) to main.js

 

AS-IS        createApp(App).use(router).use(vuetify).mount('#app')

TO-BE      createApp(App).use(router).use(createPinia()).use(vuetify).mount('#app')

 
 
 

 

728x90

'개발꿀팁 > VUE' 카테고리의 다른 글

유용한 vue snippet 설정  (0) 2023.02.16
vue 라우터에 reload 기능 가능?  (0) 2021.11.09
<router-link> 밑줄 없애기  (0) 2021.11.09
<router-link> 밑줄 없애기  (0) 2021.11.09
vue create 에러  (0) 2021.11.04