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

[Bug]: v8 Loading @emotion/react more than once warning #27005

Open
jlin5 opened this issue May 1, 2024 · 2 comments
Open

[Bug]: v8 Loading @emotion/react more than once warning #27005

jlin5 opened this issue May 1, 2024 · 2 comments

Comments

@jlin5
Copy link

jlin5 commented May 1, 2024

Describe the bug

On Storybook v8, I get a warning from @emotion/react:

You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used.

I found a bug that reported a similar issue #25761 but it still happens.

To Reproduce

  1. View https://stackblitz.com/edit/github-w7bhhe?file=src%2Fstories%2FButton.tsx
  2. Check the logs

System

Storybook Environment Info:

  System:
    OS: macOS 14.4.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.18.0 - ~/.nvm/versions/node/v18.18.0/bin/node
    Yarn: 1.22.21 - ~/.nvm/versions/node/v18.18.0/bin/yarn
    npm: 9.8.1 - ~/.nvm/versions/node/v18.18.0/bin/npm
    pnpm: 8.12.0 - ~/.nvm/versions/node/v18.18.0/bin/pnpm <----- active
  Browsers:
    Chrome: 124.0.6367.92
    Safari: 17.4.1
  npmPackages:
    @storybook/addon-essentials: ^8.0.5 => 8.0.9 
    @storybook/addon-interactions: ^8.0.5 => 8.0.9 
    @storybook/addon-links: ^8.0.5 => 8.0.9 
    @storybook/addon-themes: ^8.0.5 => 8.0.9 
    @storybook/addon-viewport: ^8.0.8 => 8.0.9 
    @storybook/blocks: ^8.0.5 => 8.0.9 
    @storybook/react: ^8.0.5 => 8.0.9 
    @storybook/react-vite: ^8.0.5 => 8.0.9 
    @storybook/test: ^8.0.5 => 8.0.9 
    storybook: ^8.0.5 => 8.0.9

Additional context

No response

@emiliegervais
Copy link

emiliegervais commented May 16, 2024

Having the same problem on distant server (reproduction). It renders fine locally (no bug).

Capture d’écran 2024-05-16 à 17 35 12

@shilman
Copy link
Member

shilman commented May 19, 2024

Seeing this in the reproduction but not when I try to reproduce locally. 🤷

@shilman shilman added the ui label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Empathy Backlog
Development

No branches or pull requests

3 participants