Skip to content

In docs "Open in Stackblitz" opens project with error #2048

@uh-zuh

Description

@uh-zuh

Describe the bug

I click "Open in Stackblitz" on page https://bits-ui.com/docs/components/combobox it opens Stackblitz ( https://stackblitz.com/edit/auz13gjn ) and there is error in console during npm install.
Removing node_modules and package-lock.json doesn't help.

Reproduction

https://stackblitz.com/edit/auz13gjn

Logs

❯ npm install && npm run dev

> svelte-project-1777777724906@0.0.1 prepare
> svelte-kit sync || echo ''

[rolldown] Downloading @rolldown/binding-wasm32-wasi@1.0.0-rc.18 on WebContainer...
 ERR_PNPM_UNSUPPORTED_PLATFORM  Unsupported platform for registry.npmjs.org/@rolldown/binding-wasm32-wasi/1.0.0-rc.18: wanted {"cpu":["wasm32"],"os":["any"],"libc":["any"]} (current: {"os":"linux","cpu":"x64","libc":"unknown"})

This error happened while installing a direct dependency of /tmp/rolldown-1.0.0-rc.18
> Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
    at <anonymous> (file:///home/projects/jpjzcshr--run/node_modules/rolldown/dist/shared/binding-Cf9ARhL0.mjs:523:36)
    at <anonymous> (file:///home/projects/jpjzcshr--run/node_modules/rolldown/dist/shared/binding-Cf9ARhL0.mjs:25:49)
    at <anonymous> (file:///home/projects/jpjzcshr--run/node_modules/rolldown/dist/shared/parse-PDqEYZcA.mjs:19:84)


added 70 packages in 46s

14 packages are looking for funding
  run `npm fund` for details

> svelte-project-1777777724906@0.0.1 dev
> vite dev

[rolldown] Downloading @rolldown/binding-wasm32-wasi@1.0.0-rc.18 on WebContainer...
 ERR_PNPM_UNSUPPORTED_PLATFORM  Unsupported platform for registry.npmjs.org/@rolldown/binding-wasm32-wasi/1.0.0-rc.18: wanted {"cpu":["wasm32"],"os":["any"],"libc":["any"]} (current: {"os":"linux","cpu":"x64","libc":"unknown"})

This error happened while installing a direct dependency of /tmp/rolldown-1.0.0-rc.18
Error: Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
    at <anonymous> (file:///home/projects/jpjzcshr--run/node_modules/rolldown/dist/shared/binding-Cf9ARhL0.mjs:523:36)
    at <anonymous> (file:///home/projects/jpjzcshr--run/node_modules/rolldown/dist/shared/binding-Cf9ARhL0.mjs:25:49)
    at <anonymous> (file:///home/projects/jpjzcshr--run/node_modules/rolldown/dist/shared/parse-PDqEYZcA.mjs:19:84)
    at run (node:internal/modules/esm/module_job:170:4963)

Node.js v22.22.0

~/projects/jpjzcshr--run 54s

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 22.22.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @sveltejs/kit: ^2.57.0 => 2.59.1 
    bits-ui: 2.18.1 => 2.18.1 
    svelte: ^5.55.2 => 5.55.5

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageA maintainer needs to review this issue and label it appropriately

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions