Skip to content
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

Storybook Dev Mode does not pick up changes #577

Open
nielslyngsoe opened this issue Sep 18, 2023 · 1 comment
Open

Storybook Dev Mode does not pick up changes #577

nielslyngsoe opened this issue Sep 18, 2023 · 1 comment
Labels
bug Something isn't working community/up-for-grabs

Comments

@nielslyngsoe
Copy link
Member

Which exact UI Library version are you using? For example: 1.0.1 - don't just write v1.

1.4.0-rc.2

Bug summary

My browser does not update the front-end code when making changes to code of Components.

So currently I have to refresh the browser.

Specifics

No response

Steps to reproduce

run the dev script.
open browser.
make a CSS change to an element.
Watch that the browser did not update.

Expected result / actual result

No response

@nielslyngsoe nielslyngsoe added bug Something isn't working needs triage This issue has not been tested by a team member yet labels Sep 18, 2023
@iOvergaard iOvergaard added community/up-for-grabs and removed needs triage This issue has not been tested by a team member yet labels Oct 19, 2023
@iOvergaard
Copy link
Contributor

iOvergaard commented Nov 16, 2023

I ran into this issue today, but realised I had a lot of .js files lying around from a build. I then ran npm run clean and then ran storybook again and everything worked. I'm not sure if something changed with the newer Storybook versions, but you can do this in one go by running npm run dev. Would you try that?

Edit: Just tried again, and I can see that Storybook reloads when I save a file, but the changes are not reflected in Storybook immediately unless I import the element directly like this: import '@umbraco-ui/uui/lib/uui-select.element. That seems a bit cumbersome but for some reason Storybook doesn't reflect the change from an index barrel :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community/up-for-grabs
Projects
None yet
Development

No branches or pull requests

2 participants