Replies: 33 comments 25 replies
-
I have a similar issue for this package: @mdi/font. |
Beta Was this translation helpful? Give feedback.
-
I had a similar issue with Updating to a newer version of Vite fixed it in my case. |
Beta Was this translation helpful? Give feedback.
-
For me, it looks like this was coming from the Adding Removing the cache at |
Beta Was this translation helpful? Give feedback.
-
I'm using Nuxt 3 and I'm trying to use
|
Beta Was this translation helpful? Give feedback.
-
also running into this issue and on |
Beta Was this translation helpful? Give feedback.
-
Hey
after adding this to
it throws this:
|
Beta Was this translation helpful? Give feedback.
-
Same issue nuxt/nuxt#19729 |
Beta Was this translation helpful? Give feedback.
-
It worked for me. I literally just deleted node_modules, then I ran |
Beta Was this translation helpful? Give feedback.
-
still no solution. https://stackblitz.com/edit/nuxt-starter-pkprdt This code running in Vite in our development environment fails, but if i put it in production compiling (without Vite) runs OK |
Beta Was this translation helpful? Give feedback.
-
Facing Same Issue. |
Beta Was this translation helpful? Give feedback.
-
Same issue here with primevue/fileupload and Nuxt 3 |
Beta Was this translation helpful? Give feedback.
-
Experienced this issue with I deleted |
Beta Was this translation helpful? Give feedback.
-
Same issue after google cloud deploy a vue project with vuetify, none of above works for me, no solution |
Beta Was this translation helpful? Give feedback.
-
I'm running my vue/vite project inside docker so all I had to do in order to resolve this was:
(same steps should apply if you're not using docker, except step zero) |
Beta Was this translation helpful? Give feedback.
-
Just figured I'd throw this out there.. But I was running into this as well and even after deleting the node modules, many times I might add it was still a problem. |
Beta Was this translation helpful? Give feedback.
-
I had a similar issue. Vite dev server would give a What fixed it for me:
|
Beta Was this translation helpful? Give feedback.
-
You can try follow |
Beta Was this translation helpful? Give feedback.
-
tried all of above to no avail.. vite 4.4.9, using Vue and "jeep-sqlite": "^2.4.1", |
Beta Was this translation helpful? Give feedback.
-
found a solution! at https://stackoverflow.com/questions/76631171/jeep-sqlite-loader-not-running-in-web add this to vite.config.ts:
|
Beta Was this translation helpful? Give feedback.
-
Just restart the server + vite!!! |
Beta Was this translation helpful? Give feedback.
-
I am not sure if this applies to everyone with this problem, but in my case, the problem was caused because I ran "npm run dev" with my user and node_modules folder was owned by root, causing vite process to be unable to rewrite assets. My docker entrypoint, among other things, creates those folders if not present, and will do so as root instead of doing it as my current user. Later, when I run npm run dev in the host as "dev" user, vite cannot access root owned folders. Short term solution: In my case, I also faced the same problem when running npm run build because it is also included in the entrypoint script so: For the long term, change ownership of the folders when they are created (probably in the build phase). |
Beta Was this translation helpful? Give feedback.
-
After restarting the server, now it's fixed for me :) |
Beta Was this translation helpful? Give feedback.
-
I also had this problem when installing the module using pnpm, and after checking the contents of the /.vite/deps folder, I found that the .js file I needed really didn't exist. |
Beta Was this translation helpful? Give feedback.
-
You will get that message if you attempt to load a node dependency inside a browser environment, My guess most of the time it is loading up environments. This will most likely be the problem. Hope this helps Short answer: Vite node dependency import inside browser e.g. (btw env this is most likely the issue
Detailed problem example/explanation: ERR_ABORTED 504 (Outdated Optimize Dep) Using Node and Browser env. Difficult to debug BaseEnvProvider.js (Base env class)
NodeEnvProvider.js (Node env class)
BrowserEnvProvider.js (Browser env class)
env.development
vite.config.* Difficult to debug because NodeEnvProvider will work in Vite/Node environment (not tested), but your browser BrowserEnvProvider will be very unhappy
browserUsageExample.js
|
Beta Was this translation helpful? Give feedback.
-
Run |
Beta Was this translation helpful? Give feedback.
-
wrap
|
Beta Was this translation helpful? Give feedback.
-
This worked for me, add this to your vite.config.js export default defineConfig({
server: {
warmup: {
clientFiles: [
"./app/entry.client.tsx",
"./app/root.tsx",
"./app/routes/**/*.tsx"
],
},
} |
Beta Was this translation helpful? Give feedback.
-
For me in Angular 17 project, on vite I ended up disabling cache in "cli": {
"analytics": false,
"cache": {
"enabled": false
}
} |
Beta Was this translation helpful? Give feedback.
-
Has anyone found a way to prevent this issue from reoccurring? I'm able to resolve the issue by stopping the server, deleting |
Beta Was this translation helpful? Give feedback.
-
In my case i was having problems with react js in an astro project |
Beta Was this translation helpful? Give feedback.
-
I'm trying to migrate an app from vue-cli to vite, but some dependencies aren't loading in the browser with a
net::ERR_ABORTED 504
error. Vite dev server isn't displaying any errors in the console, so I'm having trouble figuring out what the issue is.If I try to load the URL directly, I can reproduce the 504 error. E.g.:
https://myapp.localhost:8081/@fs/path/to/my/app/node_modules/.vite/deps/pusher-js.js?v=601736dc
But if I remove the
v
querystring, the file is returned without any errors:https://myapp.localhost:8081/@fs/path/to/my/app/node_modules/.vite/deps/pusher-js.js
Beta Was this translation helpful? Give feedback.
All reactions