You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is an issue with Vue or Vite or PrimeVue... but since it has to do with HMR, I figured it must be a Vue issue.
Here are the steps to reproduce the bug:
Clone and run the project.
$ git clone git@github.com:martinszeltins/vue-hmr-not-working-slot.git
$ cd vue-hmr-not-working-slot
$ npm install
$ npm run dev
Now open App.vue and change the default slot of TabPanel (line 9). Then save the App.vue file and look at the browser - HMR did not work unless you manually reload the page.
All I did was take the Vite starter template and added PrimeVue.
Vue version
3.2.45
Link to minimal reproduction
https://github.com/martinszeltins/vue-hmr-not-working-slot
Steps to reproduce
I don't know if this is an issue with Vue or Vite or PrimeVue... but since it has to do with HMR, I figured it must be a Vue issue.
Here are the steps to reproduce the bug:
$ git clone git@github.com:martinszeltins/vue-hmr-not-working-slot.git $ cd vue-hmr-not-working-slot $ npm install $ npm run dev
All I did was take the Vite starter template and added PrimeVue.
$ npm create vite@latest my-vue-app -- --template vue $ cd my-vue-app $ npm install $ npm install primevue@^3 --save $ npm install primeicons --save
Then I added PrimeVue to
main.js
like this:And then I added the component in
App.vue
as you can see from the reproduction repo. I didn't change anything else. Something is wrong.What is expected?
I was expecting HMR to work and auto refresh the content inside the default slot but it is not working unless I reload the whole page.
What is actually happening?
HMR is not working as expected.
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: