Introduce an error in your code that triggers the error overlay.
Click a file link in the stack trace. Observe that no editor opens and the response to the request is The server is configured with a public base URL of /myBase/ - did you mean to visit ...
Note that requests to __vite_ping DO prepend base.
Reproduction
NOTE: It doesn't actually reproduce on stackblitz because they seem to have a web worker that intercepts __open_in_editor and does the necessary handling to make it work in that environment. You'll have to download it and run it locally.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Describe the bug
base
configured.The server is configured with a public base URL of /myBase/ - did you mean to visit ...
Note that requests to
__vite_ping
DO prepend base.Reproduction
NOTE: It doesn't actually reproduce on stackblitz because they seem to have a web worker that intercepts
__open_in_editor
and does the necessary handling to make it work in that environment. You'll have to download it and run it locally.https://stackblitz.com/edit/vitejs-vite-gknqnq?file=counter.js,vite.config.ts&terminal=dev
System Info
Used Package Manager
npm
Logs
No response
Validations