Skip to content

Forever-pending requests to dev server #5310

@livthomas

Description

@livthomas

Describe the bug

When you try to use Vite in a large Vue.js application (1000+ modules) and run the dev server, the app won't load in a browser. If you open DevTools, you will see a lot of pending requests there. And they will stay stalled forever.

It looks like this issue only occurs in Chromium-based browsers. I can reproduce it in both Brave and Chromium. But it works without any problems in Firefox or GNOME Web (WebKit).

Reproduction

  1. Go to pending-requests folder of vite-bugs repo.
  2. Run npm install
  3. Run npm run dev
  4. Open a new tab in any Chromium-based browser
  5. Open DevTools and switch to the Network tab
  6. Go to http://localhost:3000/

System Info

System:
    OS: Linux 5.10 Manjaro Linux
    CPU: (16) x64 AMD Ryzen 7 PRO 4750U with Radeon Graphics
    Memory: 8.34 GB / 30.65 GB
    Container: Yes
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.10.0 - /usr/bin/node
    Yarn: 1.22.10 - ~/.npm-global/bin/yarn
    npm: 8.1.0 - ~/.npm-global/bin/npm
  Browsers:
    Brave Browser: 1.30.87 (Chromium: 94.0.4606.71)
    Chromium: 94.0.4606.81
    Firefox: 93.0
  npmPackages:
    @vitejs/plugin-vue: ^1.9.3 => 1.9.3 
    vite: ^2.6.4 => 2.6.7

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions