Repository navigation
Replies: 10 comments 10 replies
|
You mentioned that you tried in Firefox Safe Mode and the issue persisted, but in my case I was experiencing very similar symptoms and eventually found that uBlock Origin was blocking a dependency of my project from loading. I would have expected this to be fine, and that other chunks of the bundle would still load, but instead it seemed to prevent the entire app from starting. I suspect this has something to do with how Vite's dev server works, because it doesn't happen when my app is deployed in production. Disabling uBlock Origin on the page resolved the issue for me. Posting this just in case it helps you track down your own issue - maybe Firefox's built-in tracking protection is blocking a script and causing the issue in your case? (not sure if that still runs in Safe Mode) |
|
I ran into the same problem and I spent some time on making the error reproducible. We use Playwright for our integration tests and can reproduce the problem with our Firefox tests via Playwright.
I have set up two repositories to reproduce the problem: A library which only includes two images (to reach the needed file size) and a hello world application which uses the library. The repository with the app includes very simply Playwright tests (basically only check that the page can be loaded) and a Docker Compose file to simplify the setup. If you think that it could help with finding the underlying problem, then I can host the repositories on GitHub of course. |
|
It's related to HTTP/2.0, I tried disabling in vite config and the problem is gone but it's slower. Vite v5.4.14 WorkaroundIn vite config file ##Related issues |
|
I've been having this issue for the past year or so. I'm working on a large project, so the collection of all JavaScript files is very large. Until the beginning of the year, whenever Firefox would show an empty page (due to this bug), I could just refresh a few times and it would eventually load everything. But in the recent Firefox version(s), I cannot load my page. Even after trying Ctrl+R multiple times, some of the files still fail to load. (I noticed in 149, but potentially also happening on 148.) I can confirm the findings from this comment. This buggy behavior happens on vite dev server over HTTPS. This bug is gone if I remove Adding |
|
Can reproduce on |
|
I can confirm this still happens with Vite 8. Gemini Flash suggested these config changes that seemed to help resolve this for me: |
|
Just want to chime in on this. Just saw this when updating from Vite 5.4 to Vite 8.1. Very unfortunate as it breaks development in Firefox and I have to switch to Chrome for most of the work. My environment: Vite: 8.1.0 (Rolldown 1.1.3 as the default bundler) Dev server config (relevant bits): server: { Module-graph size: ~2,282 modules (per production build) |
|
i had this issue just on firefox, dumbest thing in the world, check your extensions, if you use ublock origin probably it is blocking it |
|
Migrated from Vite 7.1.x (no issues) to 8.3.4, and I'm seeing this issue so much in Firefox 158.0.1 (64-bit). Sometimes I'm lucky, and a hard refresh will fix it, but most of the times, I get 1 to dozens of It's also good to note that I maintain an internal component library, and when I'm in an app consuming that library, that's when I see this issue. However, when I'm in the test harness app for the component library (it's not bundled at this point), then I don't see the issue. In our internal library, we use a lot of barrel files, and I'm wondering if that's causing the issue here. |

Uh oh!
There was an error while loading. Please reload this page.
Running VITE v5.4.7 and LARAVEL v10.48.22 (plugin v1.0.5). Running "npm run dev". Using Firefox 130 on Mac. Using about 40 inputs.
Page loads only work roughly half the time. Very often one or more modules will fail to load. Seems to happen more on initial page load but not always. After reloading several times, each with different module loading failures, I am eventually able to get it to work.
Console shows "Loading failed for the module with source ___". Network inspector shows modules failed with NS_ERROR_NET_PARTIAL_TRANSFER error.
Works fine on Chrome.
Anyone have any intuition about what would be causing this? I've already verified that it also happens in Firefox Safe Mode with no extensions.
All reactions