Skip to content

Vite 8 project fails to run #2142

Description

@tyteen4a03

Describe the bug

(node:44) 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 (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/vitejs-vite-x15dzrua/node_modules/.pnpm/rolldown@1.1.5/node_modules/rolldown/dist/shared/binding-TuFFIE_J.mjs:525:34)
    at <anonymous> (file:///home/projects/vitejs-vite-x15dzrua/node_modules/.pnpm/rolldown@1.1.5/node_modules/rolldown/dist/shared/binding-TuFFIE_J.mjs:25:49)
    at <anonymous> (file:///home/projects/vitejs-vite-x15dzrua/node_modules/.pnpm/rolldown@1.1.5/node_modules/rolldown/dist/shared/parse-D4dtlfWy.mjs:19:84)
    at run (node:internal/modules/esm/module_job:170:4963)

Link to the blitz that caused the error

https://stackblitz.com/edit/vitejs-vite-x15dzrua?file=index.html,_oxlintrc.json&terminal=dev

Steps to reproduce

  1. Build the project.

Expected behavior

It should work

Parity with Local

Screenshots

No response

Platform

Browser name  = Firefox
Full version  = 153.0
Major version = 153
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:153.0) Gecko/20100101 Firefox/153.0
performance.memory = undefined
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