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] Internal server error: presetEntries is not iterable #476

Open
1 task
JesusTheHun opened this issue Aug 3, 2022 · 0 comments
Open
1 task

[Bug] Internal server error: presetEntries is not iterable #476

JesusTheHun opened this issue Aug 3, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@JesusTheHun
Copy link

What version of vite are you using?

2.9.14

System info and storybook versions

  System:
    OS: macOS 12.5
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
  Binaries:
    Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
    Yarn: 1.22.8 - ~/.nvm/versions/node/v16.15.0/bin/yarn
    npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
  Browsers:
    Chrome: 103.0.5060.134
    Edge: 103.0.1264.77
    Firefox: 100.0
    Safari: 15.6
  npmPackages:
    @storybook/addon-actions: ^6.5.9 => 6.5.9 
    @storybook/addon-essentials: ^6.5.9 => 6.5.9 
    @storybook/addon-interactions: ^6.5.9 => 6.5.9 
    @storybook/addon-links: ^6.5.9 => 6.5.9 
    @storybook/builder-vite: 0.1.41 => 0.1.41 
    @storybook/react: 6.4.19 => 6.4.19 
    @storybook/testing-library: ^0.0.13 => 0.0.13 

Describe the Bug

Starting a fresh project result in error :

[vite] Internal server error: presetEntries is not iterable
      at generateModernIframeScriptCode (/Users/jonathan/IdeaProjects/msw-bug-vite-timers-repro/node_modules/@storybook/builder-vite/dist/codegen-modern-iframe-script.js:11:31)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async Object.load (/Users/jonathan/IdeaProjects/msw-bug-vite-timers-repro/node_modules/vite/dist/node/chunks/dep-c9998dc6.js:39293:32)
      at async doTransform (/Users/jonathan/IdeaProjects/msw-bug-vite-timers-repro/node_modules/vite/dist/node/chunks/dep-c9998dc6.js:49976:24) (x2)

Link to Minimal Reproducible Example

https://github.com/JesusTheHun/storybook-builder-vite-bug-preset-entries-not-iterable-repro

Participation

  • I am willing to submit a pull request for this issue.
@JesusTheHun JesusTheHun added the bug Something isn't working label Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant