Skip to content

[Panic]: ViteAlias string conversion #8143

@jaredpearce

Description

@jaredpearce

Panic message

●  Copying static files: static at storybook-static
│  Vite vite v8.0.0-beta.11 building client environment for production...
Rolldown panicked. This is a bug in Rolldown, not your code.

thread '<unnamed>' (3016) panicked at crates/rolldown_binding/src/utils/normalize_binding_options.rs:540:37:
Should convert to builtin plugin: ViteAlias 
 StringExpected, Failed to convert JavaScript value `Object {"find":{},"replacement":""}` into rust type `String` on BindingViteAliasPluginAlias.replacement on BindingViteAliasPluginConfig.entries
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Reproduction

Environment

  • Storybook: v10.2.1
  • Vite: v8.0.0-beta.11 (using Rolldown)
  • Node: >=22.21.0
  • Yarn: >=4.12.0
  • Structure: monorepo with multiple workspaces

Notes

  • Can't create a stackblitz example (doesn't support monorepo setup)
  • Storybook stories sitting side-by-side with code implementation.
  • Vite build mode: library

Directory structure

modn-phoenix-ui/
├── .vscode/
├── packages/
│   ├── auth/
│   │   └── src/
│   ├── components/
│   │   ├── .storybook/
│   │   │   └── addons/
│   │   ├── docs/
│   │   │   └── design-audits/
│   │   ├── public/
│   │   │   └── brands/
│   │   ├── scripts/
│   │   ├── src/
│   │   │   ├── __mocks__/
│   │   │   ├── __tests__/
│   │   │   ├── components/
│   │   │   └── types/
│   │   └── static/
│   ├── config/
│   ├── resources/
│   │   ├── dist/
│   │   │   ├── fonts/
│   │   │   ├── icons/
│   │   │   └── illustrations/
│   │   ├── lib/
│   │   │   ├── icons/
│   │   │   └── illustrations/
│   │   ├── scripts/
│   │   └── src/
│   │       ├── fonts/
│   │       ├── icons/
│   │       └── illustrations/
│   ├── tokens/
│   │   └── props/
│   └── utils/
│       └── src/
│           └── __tests__/

Steps to reproduce from the command line:

  1. Open the components directory: cd packages/components
  2. Run the script: 'yarn storybook:build(alias forstorybook build`)
  3. Error generated
Image

System Info

System:
    OS: macOS 15.4.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 2.05 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.9.0 - /Users/jpearce/.volta/tools/image/node/24.9.0/bin/node
    Yarn: 4.12.0 - /Users/jpearce/.volta/tools/image/yarn/4.12.0/bin/yarn
    npm: 11.6.0 - /Users/jpearce/.volta/tools/image/node/24.9.0/bin/npm
    pnpm: 10.15.1 - /Users/jpearce/.volta/bin/pnpm
  Browsers:
    Chrome: 144.0.7559.110
    Edge: 144.0.3719.92
    Firefox: 134.0.2
    Safari: 18.4

Additional context

No response

Metadata

Metadata

Assignees

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions