-
-
Notifications
You must be signed in to change notification settings - Fork 183
Injected overlay assets not found, 404 #875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am using the latest My vite_ruby configuration looks like the following: {
"all": {
"appType": "custom",
"logLevel": "error",
"additionalEntrypoints": []
},
"development": {
"autoBuild": true,
"publicOutputDir": "vite-dev",
"logLevel": "info"
}
} But notice that the screenshot from here was focusing on the |
I still cannot produce it 😅 Have you tried to run vite dev server like |
the UPDATE: |
So that we are on the same page: <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="./logo.svg" type="image/svg+xml" />
<title>Vue DevTools Client</title>
<script src="./color-scheme.js"></script>
<script type="module" crossorigin src="./assets/index-yAcFXzxs.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-8iTKmI6V.css">
</head>
<body>
<div id="app"></div>
</body>
</html> This file is loaded within the |
I guess you're not using 7.7.6. I checked the released code on npm,
Maybe you can try:
|
WTF ....
So I thought, everything should be fine. However, in the {
"name": "vite-plugin-vue-devtools",
"type": "module",
"version": "7.7.2",
"description": "A vite plugin for Vue DevTools"
} Why is there version 7.7.2? Even if I download the stuff and install it via UPDATE: |
Ok, so I just added the package with the
So it's actually copying the files BUT they are not there .... 🤯 🤦 💢 😑 |
OMG ...... |
I use VueJS with the Vite Ruby.
I followed the instructions on the docs section "How to work with Vite Ruby?".
Part of my
vite.config.js
looks like this:The DevTool Icon is rendering but the injected JS and stylesheet (for the tabs within the overlay) are running into a 404. Actually, the referenced JS has a MIME-Type error because the JS is not found so it returns the HTML infopage of the Vite-Dev server -> js expected, html served -> error.
But WHY is this happening? How can I get rid of it?
The
vite-dev
path is set as mypublicOutputDir
within Vite-Ruby config.Path for CSS:
https://host:3000/vite-dev/__devtools__/assets/index-CzVhFJJG.css
Path for JS:
https://host:3000/vite-dev/__devtools__/assets/index-HL7F1XxZ.js
The files are not served by the Vite-Devserver, so where are they?
The inspector seems to work and recognizes the components correctly. However, the Overlay is not.
I use
Setting the
base
config option to./
or similar did not work!Pls help me out. Thx. 🙏
The text was updated successfully, but these errors were encountered: