-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hot reload broken in Storybook 7 with NextJS #24854
Comments
Hello @cheryl-c-tirerack, Thank you for reporting the issue. Unfortunately, I cannot reproduce it. Hot reloading works fine. I tried it by changing the CSS, the Story file, and the component file itself. The changes are correctly sent to the browser, and the Story reloads immediately. I have tested it with both, Chrome and Safari. Can you verify, whether you see network requests in your browser as soon as you change a file? |
I do not see anything in the network tab. client.js:199 [HMR] bundle 'preview' has 2 warnings |
Looks related, however nothing in that thread tells me what to do to fix. |
I am experiencing this. I create a fresh nextjs typescript app with a fresh installation of storybook.js, and I get this error out of the box. I get the following error with it in the terminal: |
I don’t think the error is connected to the HMR issue. I have the warning, too, and I don’t have any HMR issues. Unfortunately, I can’t reproduce it with the provided repo. Can you all try to open Storybook in an Inkognito tab (to ensure that not a browser addon hinders HMR). Try also out other Browsers. Try to reproduce it on an online service like stackblitz to exclude that it has something to do with your machine or special OS settings. |
I had tried Safari and incognito and still had issue. I can use this to try and compare local things but I'm open to clues as to where to look. |
I came to confess a simple fix and I'm embarrassed. |
Great to hear that a simple reboot has fixed the issue. Thank you for trying all those things out! |
Describe the bug
I've seen this reported for other frameworks but I've not seen one for NextJS
In a fresh install of nextJs and storybook latest, the hot reloader is not working.
To test,
Run Storybook.
Go to any component such as button. Make a css change or a markup change. No reload happens. Further more, on a hard browser refresh, change does not appear.
I'm not sure which storybook version introduces this, it just appeared in recent month. It is making dev experience very bad.
To Reproduce
https://github.com/cheryl-c-tirerack/storybook-debugging
System
Also with Node bump
Additional context
No response
The text was updated successfully, but these errors were encountered: