Skip to content

nuxi dev causes requests to stay "Pending" #279

@hendrikheil

Description

@hendrikheil

We've just discovered some behavior that causes our projects to completely stop working after the first request.

To give some context, we currently have our projects on nuxt v3.6.5. After updating to latest nuxt (currently 3.8.0), our apps start to have around 10% of their requests stuck in "Pending" when checking out the network tab in Chrome DevTools.

We've been able to isolate the issue to 3.7.0, as thats the version when this starts happening. More specifically, we traced it to nuxi v3.7.0. Whenever we override nuxt's dependency on nuxi to v3.6.5, all works just like expected.

We're seeing this irrelevant of OS (we tested MacOS and Linux) and Node version (we tested 18 and 20).

In our case, something causes every date-fns and lodash-es function to be imported as a single request, meaning we end up making 1.2k requests to load our SPA. The first request usually works just fine, however any requests after are partially stuck in "Pending", some seem to resolve after a delay of 30s. As soon as there are requests that get into the Pending state, we don't really leave the spa-loading-template content anymore and can't do anything with the apps.

For now the workaround is to pin nuxi, but that doesn't seem like a good solution. We could also spend more time to figure out why we there are so many requests in the first place, but even then 1200 local requests on a machine don't seem like they should be a bottle neck at all.

Before we dive super deep into this, is there anybody that has experienced this too?
We'll try to provide a reproduction repo of course.

Might be related to #209

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions