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 vite builder breaks creevey chrome after hot-reload #194

Open
giubatt opened this issue Nov 26, 2021 · 0 comments
Open

Storybook vite builder breaks creevey chrome after hot-reload #194

giubatt opened this issue Nov 26, 2021 · 0 comments

Comments

@giubatt
Copy link

giubatt commented Nov 26, 2021

I'm trying to setup creevey in a project using storybook with the vite builder.

On the first run after launching storybook and creevey ui it seems to work fine most of the time, however if I make a change in a story or component that triggers a reload on storyboook, and then run the tests again, I get this error in creevey:

Error: Creevey can't switch story. This may happened if forget to add `creevey` addon to your storybook config, or storybook not loaded in browser due syntax error.
    at selectStory (node_modules/creevey/lib/cjs/server/selenium/browser.js:376:27)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at Context.switchStory (node_modules/creevey/lib/cjs/server/selenium/browser.js:547:3)

I have a container running chrome and another with firefox, the firefox one seems to not break on a reload, but I had that error pop up on it too a few times, I just couldn't figure out a pattern yet.

If I run storybook with the normal webpack builder everything works perfectly, which is what I'll be doing for the moment, but it would be great if there was an easy fix for the issue as the storybook is quite big, and it takes a bit to refresh on changes with webpack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant