Skip to content

Unknown Error: Maximum recursive updates exceeded in component #2554

Open
@deathmaz

Description

Describe the bug

An error is thrown when running test:

Unknown Error: Maximum recursive updates exceeded in component <TestComponent>. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.

It's unclear for me what exactly causes the error, if it's one thing or combination of different things:

  • if this line is commented out the error is not thrown
  • the error is not thrown when this and this lines are commented out
  • i don't have any issues using such component in the browser

To Reproduce

git clone [email protected]:deathmaz/vue-test-issue-repro.git
cd vue-test-issue-repro
npm install
npm run test:unit

Expected behavior

No error is thrown

Related information:

  System:
    OS: Linux 6.6 Manjaro Linux
    CPU: (6) x64 AMD Ryzen 5 4500U with Radeon Graphics
    Memory: 7.77 GB / 15.03 GB
    Container: Yes
    Shell: 5.9 - /bin/zsh
  npmPackages:
    @vue/test-utils: ^2.4.6 => 2.4.6
    vitest: ^2.1.4 => 2.1.5
    vue: ^3.5.12 => 3.5.13

Additional context

The component in the repro uses @floating-ui/vue package

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions