ERR_LOAD_PUBLIC_URL
happens when <script src="/file-in-public.js">
exists
#12643
Closed
7 tasks done
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
If the
index.html
includes<script src="/file-in-public.js"></script>
, Vite outputs the following error.The error is output after accessing the page.
This happens in main branch (8da04227d6f818a8ad9efc0056101968037c2e36) and not with 4.3.0-beta.0.
I guess #12599 is affecting this one. /cc @bluwy
Reproduction
https://stackblitz.com/edit/vitejs-vite-pruyw5?file=main.js&terminal=dev
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: