Skip to content

Error when starting the dev server #304

@HodgeWen

Description

@HodgeWen

Describe the bug

The following error occurs when starting the dev server:

(!) Failed to run dependency scan. Skipping dependency pre-bundling. Error: The following dependencies are imported but could not be resolved:

    react/jsx-runtime (imported by /home/www/Codes/my-app/src/components/HelloWorld.tsx)

Are they installed?
    at file:///home/www/Codes/my-app/node_modules/vite/dist/node/chunks/dep-B7YTGBYR.js:10055:33
    at async file:///home/www/Codes/my-app/node_modules/vite/dist/node/chunks/dep-B7YTGBYR.js:33926:15

Reproduction

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

Steps to reproduce

No response

System Info

System:
    OS: Linux 6.15 EndeavourOS
    CPU: (20) x64 13th Gen Intel(R) Core(TM) i9-13900H
    Memory: 18.46 GB / 31.08 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 24.3.0 - ~/.nvm/versions/node/v24.3.0/bin/node
    npm: 11.4.2 - ~/.nvm/versions/node/v24.3.0/bin/npm
    pnpm: 10.12.4 - ~/.local/share/pnpm/pnpm
    bun: 1.2.17 - ~/.bun/bin/bun
  npmPackages:
    @vitejs/plugin-vue: ^6.0.0 => 6.0.0 
    @vitejs/plugin-vue-jsx: ^5.0.0 => 5.0.1 
    rolldown-vite:  7.0.3

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions