Skip to content

waitForRequestsIdle hangs indefinitely when used in a Nuxt project #17980

Closed
@philipp-spiess

Description

@philipp-spiess

Describe the bug

When adding a Vite plugin inside a fresh Nuxt project, waitForRequestIdle on CSS assets will stall indefinitely.

Reproduction

https://github.com/philipp-spiess/vite-waitForRequestIdle-issue

Steps to reproduce

  • npm install
  • npm run dev
  • Go to the local dev server and observe the website stuck in loading state

System Info

System:
    OS: macOS 15.0
    CPU: (10) arm64 Apple M1 Max
    Memory: 9.59 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.16.0 - ~/.local/share/mise/installs/node/20.16.0/bin/node
    npm: 10.8.1 - ~/.local/share/mise/installs/node/20.16.0/bin/npm
    pnpm: 9.6.0 - ~/.local/share/mise/installs/pnpm/9.6.0/bin/pnpm
    bun: 1.1.26 - ~/.local/share/mise/installs/bun/1.1.26/bin/bun
    Watchman: 2024.08.05.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 128.0.6613.86
    Safari: 18.0
  npmPackages:
    vite: latest => 5.4.2

Used Package Manager

pnpm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3-downstream-blockerBlocking the downstream ecosystem to work properly (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions