Skip to content

[🐞] v2: uncaught promise caused by setTimeout, style object, and computed #8112

@thejackshelton

Description

@thejackshelton

Which component is affected?

Qwik Runtime

Describe the bug

There is an uncaught promise when we try to introduce autoplay behavior (like in a carousel component) in v2. This is a regression from v1.

Reproduction

https://github.com/thejackshelton/uncaught-promise-timeout-repro/edit/main/README.md

Steps to reproduce

Reproduction Steps

  1. pnpm install
  2. pnpm dev
  3. open http://localhost:5173
  4. open console
  5. click the autoplay button
  6. see an uncaught promise error in the console

Expected Behavior

The carousel should autoplay without throwing an uncaught promise error.

System Info

System:
    OS: macOS 26.0
    CPU: (16) arm64 Apple M4 Max
    Memory: 835.52 MB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.9.0 - /Users/jackshelton/.nvm/versions/node/v24.9.0/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 11.6.0 - /Users/jackshelton/.nvm/versions/node/v24.9.0/bin/npm
    pnpm: 10.19.0 - /Users/jackshelton/.nvm/versions/node/v24.9.0/bin/pnpm
    bun: 1.1.7 - /Users/jackshelton/.bun/bin/bun
    Deno: 2.1.4 - /opt/homebrew/bin/deno
  Browsers:
    Brave Browser: 141.1.83.120
    Chrome: 141.0.7390.123
    Firefox: 144.0.2
    Safari: 26.0
  npmPackages:
    typescript: 5.4.5 => 5.4.5 
    undici: * => 7.16.0 
    vite: 7.1.11 => 7.1.11

Additional Information

The uncaught promise error is thrown after the setInterval time.

Removing the signal read in the object style property prevents the uncaught promise error.

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