Skip to content

could not resolve react refresh when using bundledDev and base #21679

@literalpie

Description

@literalpie

Describe the bug

I get an error when I turn on bundledDev with some base value.

Reproduction

https://github.com/literalpie/vite-full-bundled

Steps to reproduce

in the reproduction repo linked above, just run:
pnpm install && pnpm dev

(not a stackblitz because I got a panic when trying bundledDev in stackblitz at all. I opened an issue for that)

System Info

System:
    OS: macOS 26.3
    CPU: (12) arm64 Apple M2 Pro
    Memory: 64.84 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.16.0 - /Users/benjaminkindle/Library/Caches/fnm_multishells/28422_1771691930165/bin/node
    Yarn: 1.22.22 - /Users/benjaminkindle/Library/pnpm/yarn
    npm: 10.9.2 - /Users/benjaminkindle/Library/Caches/fnm_multishells/28422_1771691930165/bin/npm
    pnpm: 10.17.1 - /Users/benjaminkindle/Library/pnpm/pnpm
    Deno: 2.2.1 - /Users/benjaminkindle/.deno/bin/deno
  Browsers:
    Chrome: 145.0.7632.76
    Safari: 26.3
    Safari Technology Preview: 26.0
  npmPackages:
    @vitejs/plugin-react: ^5.1.4 => 5.1.4 
    vite: 8.0.0-beta.15 => 8.0.0-beta.15

Used Package Manager

pnpm

Logs

[UNRESOLVED_IMPORT] Error: Could not resolve '/ui/@react-refresh' in index.html?html-proxy&index=0.js
╭─[ index.html?html-proxy&index=0.js:1:38 ]

1 │ import { injectIntoGlobalHook } from "/ui/@react-refresh";
│ ──────────┬─────────
│ ╰─────────── Module not found.

│ Help: 'index.html?html-proxy&index=0.js' is imported by the following path:
│ - index.html?html-proxy&index=0.js
│ - index.html

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions