HMR error: Cannot access 'useAuthStore' before initialization #1377
-
Hi, I need to access the store on a I've tried to replicate it, but if I change something about the file I'm currently navigating in, I still get a Here is my code:
Am I doing something wrong? The initialization should happen, but it just doesn't. Any help is greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
what page are you on and what file do you change exactly? it's as if the |
Beta Was this translation helpful? Give feedback.
-
It turns out the |
Beta Was this translation helpful? Give feedback.
It turns out the
App.vue
component was being re-rendered entirely or something along those lines due to a badly coded PrimeVue tooltip from my part, that was being injected withapp.config.globalProperties.$toast
and was causing this issue. Once I commented out this code, things are hot reloading without errors now. Thank you so much and sorry for the inconvencience!