How to block Error: Failed to load url xxx. Does the file exist? #13510
Unanswered
zhangyuhan2016
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you very much for taking the time to read and help resolve this question! 🙏
I have set a proxy for some common modules using
proxy
>/proxy-module
. I use it inindex.html
and the resource/proxy-module/test.js
loads successfully, but I get an error prompt sayingFailed to load url xxx. Does the file exist?
.How can I avoid resource error prompts when the corresponding resources have already been loaded successfully?
Here is a simple scenario:
In
index.html
:In
vite.config.js
:How can I avoid this error?
Beta Was this translation helpful? Give feedback.
All reactions