Open yud0uhu opened 5 months ago
Same happens to me
the same problem :(
Same happens to me :(
Same problem here
same :(
same 😤
same :(
@ghengeveld WYDT about:
We are refactoring VTA as part of the Vitest integration, so I think we can lump this into that work.
@shilman Refreshing the page will most likely result in a 404 if the Storybook server is gone, so I don't think refreshing automatically is a good idea. We could add a refresh button in the notification, for convenience.
Perhaps we can use a fetch request to try the waters before triggering an automatic refresh 🤔
Moving the check to Storybook core is great, I'm all for it 👍
@ghengeveld good call on the fetch request. Anecdotally, I suspect a decent percentage of these warnings are automatically correctable.
@yud0uhu Do you also get this error when updating stories? We've recently upgraded to v8 and now get this error on save and have to refresh the page. It also takes around 10 seconds for the hmr update
to complete.
Same problem with 8.3.2.
@MichaelJHaywood what framework are you using? HMR shouldn't take 10s. If React-Vite try upgrading to the latest to reduce HMR time
I updated the following dependencies to version 8.3.4 (from 8.3.2), and HMR is now functioning correctly:
"@storybook/addon-a11y": "^8.3.4",
"@storybook/addon-essentials": "^8.3.4",
"@storybook/addon-interactions": "^8.3.4",
"@storybook/addon-links": "^8.3.4",
"@storybook/blocks": "^8.3.4",
"@storybook/react": "^8.3.4",
"@storybook/react-vite": "^8.3.4",
"@storybook/test": "^8.3.4",
"storybook": "^8.3.4",
Describe the bug
Describe the bug
TL;DR: Following the instructions in the Migration guide, I have updated from version 7.4.5 to 8.1.7 using the below CLI command. As a result, during the build process, I received a pop-up message saying "Connection lost. Lost connection to the Storybook server. Try refreshing the page." Once the building process finishes or if I refresh the page even once, the pop-up disappears and does not show up again. Is this a bug?
Screen Shot
Reproduction link
https://stackblitz.com/~/github.com/yud0uhu/github-9d8gmf-x8px7p
Reproduction steps
yarn storybook'
: launch the dev environment from port 6006.Open the localhost:6006 port in the Arc browser while building.
System
Additional context
I have confirmed that the same pop-up appears during the build process, even when I start the server after killing all local server processes. I also confirmed that the same pop-up appears immediately after killing the local server while the page of port 6006 is open.