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
- Click New Project.
- Select the Frontend tab and choose either React JavaScript or React TypeScript.
- Install the dependencies.
- Run the application using: npm run dev
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
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
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 iagain 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
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 iagain 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
Platform
Additional context
No response