Skip to content

Vite 8: Dependency scan error on rolldownOptions.input value at the first run #22752

Description

@rtritto

Describe the bug

On the first run of vite (yarn vite dev) the dependency scan fails on rolldownOptions.input.

After the first run, it works and if you delete .vite folder and start vite, you get the error.

Same issue (regression) of #20377

Reproduction

template-vike-solid-daisyui-hono/tree/bug-vite-8-rolldownOptions (commit b391b3e)

Steps to reproduce

  • yarn
  • yarn dev

System Info

System:
    OS: Windows 11
  Binaries:
    Node: 24.12.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 4.17.0 - C:\Program Files\nodejs\yarn.CMD
    npm: 11.6.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 10.33.0 - C:\Program Files\nodejs\pnpm.CMD

Used Package Manager

yarn

Logs

Click to expand!
19:26:36 [vite] (client) Re-optimizing dependencies because lockfile has changed

  VITE v8.1.0  ready in 254 ms

  ➜  Local:   http://localhost:3000/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help
(!) Failed to run dependency scan. Skipping dependency pre-bundling. Error: failed to resolve rolldownOptions.input value: "entry-client.tsx".
    at resolvePath (file:///C:/template-vike-solid-daisyui-hono/node_modules/vite/dist/node/chunks/node.js:30234:29)
    at async computeEntries (file:///C:/template-vike-solid-daisyui-hono/node_modules/vite/dist/node/chunks/node.js:30237:50)
    at async scan (file:///C:/template-vike-solid-daisyui-hono/node_modules/vite/dist/node/chunks/node.js:30187:19)
    at async file:///C:/template-vike-solid-daisyui-hono/node_modules/vite/dist/node/chunks/node.js:33217:15

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    feat: deps optimizerDependencies Optimizationp2-edge-caseBug, but has workaround or limited in scope (priority)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions