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]: Load component fail after publish #27067

Open
davcup opened this issue May 8, 2024 · 2 comments
Open

[Bug]: Load component fail after publish #27067

davcup opened this issue May 8, 2024 · 2 comments

Comments

@davcup
Copy link

davcup commented May 8, 2024

Describe the bug

We are experience a different behavior between the local run and the published version. It works fine when we lunch the storybook with
npm run storybook
but after we build the storybook with
npm run build-storybook
we see this error:
image

To Reproduce

I cannot replicate it as it works in develop mode

System

Storybook Environment Info:

  System:
    OS: Windows 11 10.0.22000
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
  Binaries:
    Node: 20.12.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.5.1 - C:\Program Files\nodejs\npm.CMD <----- active
  Browsers:
    Edge: Spartan (44.22000.2600.0), Chromium (123.0.2420.97)
  npmPackages:
    @storybook/addon-actions: ^7.6.17 => 7.6.17
    @storybook/addon-essentials: ^7.6.17 => 7.6.17
    @storybook/addon-links: ^7.6.17 => 7.6.17
    @storybook/angular: ^7.6.17 => 7.6.17
    @storybook/preset-scss: ^1.0.3 => 1.0.3
    eslint-plugin-storybook: ^0.6.8 => 0.6.8
    storybook: ^7.6.17 => 7.6.17

Additional context

No response

@squidjam
Copy link

squidjam commented May 8, 2024

To add information to the request, I had to clear caches to get it working properly whenever I've experienced this.
(This comment is not presented as a solution)

@shilman
Copy link
Member

shilman commented May 19, 2024

Do you a have a reproduction repo you can share? If not, can you create one? Go to https://storybook.new or see repro docs. Thank you! 🙏

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

No branches or pull requests

3 participants