Subscribe on changes!

Something (looks like maybe static hoisting) is breaking HMR

avatar
Jan 24th 2022

Version

3.2.29

Reproduction Link

https://github.com/AaronBeaudoin/vite-vue-ssr-bug-repr/tree/vanilla

This repo is a stripped down version of Vite's ssr-vue playground.

Steps to Reproduce

Steps are in the repo's README.md file.

What is expected?

When changing the "DOESN'T WORK" text, HMR instantly responds and updates the page.

What is actually happening?

When changing the "DOESN'T WORK" text, HMR doesn't work and an error is logged in the console from the Vue runtime.

Extra Info

This issue was originally posted here to the Vite repo, but it looks like it's very likely actually an issue with Vue itself.

avatar
Jan 27th 2022

Hi all. This is a real weird one and I've tried to figure out the cause for this strange behavior but I've had pretty much no success. Would someone with more experience be willing to step in and take a look? Thanks!

avatar
Mar 5th 2022

Fixed by #5406.