-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed as not planned
Labels
STATUS-2: missing infoIncomplete issue/pr template or missing important informationIncomplete issue/pr template or missing important informationTYPE: bugSomething isn't workingSomething isn't working
Description
Which component is affected?
Qwik City (routing)
Describe the bug
Hi, I'm trying to build a mechanism that will allow me to show error toast from every environment using ErrorBoundary, however I encounter that ErrorBoundary or useErrorBoundary catch only client generated errors and server errors are not.
In the reproduction link, I got the following error:
line must be greater than 0 (lines start at line 1)
Meanwhile in the local environment I got vite hmr overlay or vite internal error with an error message, which was passed in new Error(message).
I expect ErrorBoundary will catch all errors despite the environment in which it was thrown.
Discord discussion: click.
Reproduction
https://stackblitz.com/edit/github-eduzvfke?file=src%2Froutes%2Flayout.tsx
Steps to reproduce
- Go to link
- Check routes with different examples
- Click on button or visit needed page
System Info
System:
OS: macOS 15.3.2
CPU: (10) arm64 Apple M1 Max
Memory: 15.25 GB / 64.00 GB
Shell: 3.4.1 - /usr/local/bin/fish
Binaries:
Node: 22.11.0 - ~/.asdf/installs/nodejs/22.11.0/bin/node
Yarn: 1.22.22 - ~/.asdf/installs/nodejs/22.11.0/.npm/bin/yarn
npm: 10.9.0 - ~/.asdf/plugins/nodejs/shims/npm
pnpm: 9.12.2 - ~/.asdf/shims/pnpm
bun: 0.1.4 - ~/.bun/bin/bun
Browsers:
Chrome: 134.0.6998.166
Safari: 18.3.1
npmPackages:
@builder.io/qwik: 1.13.0 => 1.13.0
@builder.io/qwik-city: 1.13.0 => 1.13.0
typescript: 5.4.5 => 5.4.5
undici: * => 7.3.0
vite: 5.3.5 => 5.3.5Additional Information
No response
Metadata
Metadata
Assignees
Labels
STATUS-2: missing infoIncomplete issue/pr template or missing important informationIncomplete issue/pr template or missing important informationTYPE: bugSomething isn't workingSomething isn't working