Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app.config.errorHandler does not handle an error thrown in computed since [email protected] #11286

Closed
ichitera opened this issue Jul 2, 2024 · 1 comment
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.

Comments

@ichitera
Copy link

ichitera commented Jul 2, 2024

Vue version

3.4.31

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-x6adme?file=package.json%3AL12&terminal=dev

Steps to reproduce

  1. Open the Console panel of DevTools
  2. You'll see the following error
    Uncaught (in promise) Error: invalid value
    

What is expected?

app.config.errorHandler handles an error thrown in computed, and the following message is shown in the Console panel.

errorHandler received an error
Error: invalid value

What is actually happening?

app.config.errorHandler does not handle an error thrown in computed, and the following message is shown in the Console panel.

Uncaught (in promise) Error: invalid value

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    vue: 3.4.31 => 3.4.31

Any additional comments?

The error thrown in a callback of computed is handled by app.config.errorHandler in Vue 3.3.13.

https://stackblitz.com/edit/vitejs-vite-pmkxsy?file=package.json%3AL12-L12

@yyx990803
Copy link
Member

This has been fixed by ee0248a

yyx990803 added a commit that referenced this issue Jul 17, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
Projects
None yet
2 participants