-
Notifications
You must be signed in to change notification settings - Fork 106
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
[Bug] The symbol "prevRefreshReg" has already been declared #519
Comments
You have multiple react plugins. You've got two options:
If you want to try option 1 (I'd recommend at least giving it a shot, it's much faster than 6.5 as well), you can run |
@IanVS Thanks, it's indeed all about that react plugin which produces that issue. |
@IanVS Thanks for the tip, just tried out storybook 7.0 alpha version... Everything is fine now. And it's so fucking fast. Awesome! |
Just one thing that now came up is our bitbucket pipeline: |
Unfortunately that's one of the top issues with vite right now. See vitejs/vite#2433 for some tips and workarounds to deal with it. |
What version of
vite
are you using?3.2.2
System info and storybook versions
Environment Info:
System:
OS: macOS 12.6
CPU: (10) arm64 Apple M1 Max
Binaries:
Node: 18.11.0 - /opt/homebrew/bin/node
npm: 8.19.2 - /opt/homebrew/bin/npm
Browsers:
Chrome: 107.0.5304.87
Safari: 16.0
npmPackages:
@storybook/addon-actions: ^6.5.13 => 6.5.13
@storybook/addon-backgrounds: ^6.5.13 => 6.5.13
@storybook/addon-controls: ^6.5.13 => 6.5.13
@storybook/addon-links: ^6.5.13 => 6.5.13
@storybook/addon-toolbars: ^6.5.13 => 6.5.13
@storybook/addon-viewport: ^6.5.13 => 6.5.13
@storybook/addons: ^6.5.13 => 6.5.13
@storybook/builder-vite: ^0.2.5 => 0.2.5
@storybook/cli: ^6.5.13 => 6.5.13
@storybook/client-api: ^6.5.13 => 6.5.13
@storybook/preset-typescript: ^3.0.0 => 3.0.0
@storybook/react: ^6.5.13 => 6.5.13
Describe the Bug
We are trying to switch to storybook-builder-vite and encountered the following issue:
This error occurs multiple times for each file.
main.js:
Got no idea, what is missing right now.
Link to Minimal Reproducible Example
No response
Participation
The text was updated successfully, but these errors were encountered: