Skip to content

React and Typescript Code Editor - Application doesn't start #2171

Description

@sanju1098

Describe the bug

Getting this error

❯ npm install && npm run dev

added 30 packages in 2s

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

> vite-react-typescript-starter@0.0.0 dev
> vite

[rolldown] Downloading @rolldown/binding-wasm32-wasi@1.2.9 on WebContainer...
Packages: +7
+++++++
Progress: resolved 7, reused 0, downloaded 7, added 7, done

dependencies:
+ @rolldown/binding-wasm32-wasi 1.2.9

Done in 10.5s
(node:7) ExperimentalWarning: WASI is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Error: `__napiBindingTarget` is reserved by the generated binding loader, but the loaded binding already exports it. Rename the export, e.g. #[napi(js_name = "...")].
    at __napiStampBindingTarget (file:///home/projects/vitejs-vite-idpfd7wf/node_modules/rolldown/dist/shared/binding-BbrDfv1x.mjs:627:34)
    at eval (file:///home/projects/vitejs-vite-idpfd7wf/node_modules/rolldown/dist/shared/binding-BbrDfv1x.mjs:642:39)
    at Module.eval (file:///home/projects/vitejs-vite-idpfd7wf/node_modules/rolldown/dist/shared/binding-BbrDfv1x.mjs:25:49)
    at eval (file:///home/projects/vitejs-vite-idpfd7wf/node_modules/rolldown/dist/shared/parse-DltPb1DL.mjs:19:84) {
  code: 'ERR_NAPI_BINDING_TARGET_CONFLICT'
}

Node.js v22.22.3

For temp Fix:
use/degrading the versions
Fix is degrading the versions

  1. "@vitejs/plugin-react": "^4.3.4",
  2. "vite": "^7.3.6"

Link to the blitz that caused the error

https://stackblitz.com/edit/vitejs-vite-idpfd7wf?file=README.md

Steps to reproduce

  1. Go to dashboard
  2. Click on Create a new project
  3. Select either React or Typescript
  4. Wait for the node modules to install and you will see the error

Expected behavior

It should start the application without any errors

Parity with Local

Screenshots

No response

Platform

Browser name  = Chrome
Full version  = 153.0.0.0
Major version = 153
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 88035412,
  "usedJSHeapSize": 58845656,
  "jsHeapSizeLimit": 4395630592
}
Hash = d5306e6f

Additional context

Fix is degrading the versions

  1. "@vitejs/plugin-react": "^4.3.4",
  2. "vite": "^7.3.6"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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