Skip to content

Issues with peer dependencies found #2144

Description

@sanju1098

Describe the bug

Creating a new React application results in an error, preventing the project from running successfully. The same issue also occurs when opening and running existing React projects that were previously working. The problem affects both newly created and existing React applications, indicating a possible environment or dependency-related issue rather than a project-specific error.
Issues with peer dependencies found
.
└─┬ @rolldown/binding-wasm32-wasi 1.1.5
└─┬ @napi-rs/wasm-runtime 1.2.0
├── ✕ unmet peer @emnapi/core@^2.0.0-alpha.3: found 1.11.1 in @rolldown/binding-wasm32-wasi
└── ✕ unmet peer @emnapi/runtime@^2.0.0-alpha.3: found 1.11.1 in @rolldown/binding-wasm32-wasi

Done in 19.9s
(node:12) ExperimentalWarning: WASI is an experimental feature and might change at any time
(Use node --trace-warnings ... to show where the warning was created)
Error: Cannot find native binding. npm has a bug related to optional dependencies (npm/cli#4828). Please try npm i again after removing both package-lock.json and node_modules directory.
at eval (file:///home/projects/vitejs-vite-64gtdmrq/node_modules/rolldown/dist/shared/binding-TuFFIE_J.mjs:525:34)
at Module.eval (file:///home/projects/vitejs-vite-64gtdmrq/node_modules/rolldown/dist/shared/binding-TuFFIE_J.mjs:25:49)
at eval (file:///home/projects/vitejs-vite-64gtdmrq/node_modules/rolldown/dist/shared/parse-D4dtlfWy.mjs:19:84)

Node.js v22.22.3

Link to the blitz that caused the error

https://stackblitz.com/edit/vitejs-vite-jffgfvfq?file=src%2FApp.jsx

Steps to reproduce

  1. Click New Project.
  2. Select the Frontend tab and choose either React JavaScript or React TypeScript.
  3. Install the dependencies.
  4. Run the application using: npm run dev
Image

The development server fails to start and throws the following error:

Issues with peer dependencies found.

└─┬ @rolldown/binding-wasm32-wasi 1.1.5
└─┬ @napi-rs/wasm-runtime 1.2.0
├── ✕ unmet peer @emnapi/core@^2.0.0-alpha.3
└── ✕ unmet peer @emnapi/runtime@^2.0.0-alpha.3

(node:12) ExperimentalWarning: WASI is an experimental feature and might change at any time

Error: Cannot find native binding. npm has a bug related to optional dependencies.
Please try npm i again after removing both package-lock.json and node_modules directory.

Node.js v22.22.3

Expected behavior

The React development server should start successfully, and the application should load in the browser.

Parity with Local

Screenshots

Image

Platform

Browser name  = Chrome
Full version  = 150.0.0.0
Major version = 150
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 119440566,
  "usedJSHeapSize": 111074894,
  "jsHeapSizeLimit": 2126249984
}
Hash = 87cf54cd

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions