Replies: 2 comments
-
This was included in the v4.0.1: https://github.com/vitejs/vite-plugin-react/releases/tag/plugin-react%404.0.1 If you're using at least this version, maybe the check is not working, this was kind of a hacky fix. I hope some people will take care to figure out HMR for web workers before having full apps render ouside the dom, otherwise this will be a great regression in DX. Currently, if your code mostly uses workers, you get a simpler DX by removing the react plugin and having raw Vite esbuild + full reload. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response 🙏 It looks like Storybook is on v3. Apologies for the noise. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
@ArnaudBarre thanks for your work on this library. Rather than a new issue I thought I might open a discussion. Did #181 make it into the
v4
release?I just ran into this issue using Storybook with an
offscreencanvas
using a dedicated worker. It is especially difficult to troubleshoot, as I had to remove all the imports before I could see in the debugger that it wasvite
actually throwing the error rather than local code depending onwindow
.Beta Was this translation helpful? Give feedback.
All reactions