qwik icon indicating copy to clipboard operation
qwik copied to clipboard

[🐞] Error Boundary Issue

Open tzdesign opened this issue 1 year ago • 1 comments

Which component is affected?

Qwik Runtime

Describe the bug

Using ErrorBoundary (which is not documented) leads to symbol not found error:

image

Reproduction

https://github.com/tzdesign/qwik-error-boundary-issue

Steps to reproduce

pnpm install && pnpm preview

System Info

System:
    OS: macOS 14.5
    CPU: (14) arm64 Apple M3 Max
    Memory: 4.50 GB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.2 - /usr/local/bin/node
    Yarn: 1.22.22 - ~/Library/pnpm/yarn
    npm: 10.5.0 - /usr/local/bin/npm
    pnpm: 9.0.5 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 124.0.6367.207
    Edge: 124.0.2478.105
    Safari: 17.5
  npmPackages:
    @builder.io/qwik: ^1.5.4 => 1.5.4 
    @builder.io/qwik-city: ^1.5.4 => 1.5.4 
    typescript: 5.4.5 => 5.4.5 
    undici: * => 6.16.1 
    vite: ^5.2.10 => 5.2.11

Additional Information

It's also odd that qwik has a component ErrorBoundary created by Manu, but does not export it.

If I have time a bit this week, I might write docs about the error boundary.

tzdesign avatar May 15 '24 07:05 tzdesign

@PatrickJS @wmertens you know if we are able to use useErrorBoundery in the future?

I might listen to qerror for now. I read the code, but I probably don't understand the issue with the log. Still remains in 1.9.1

tzdesign avatar Oct 23 '24 14:10 tzdesign

@Varixo does the errorboundary work in v2?

wmertens avatar Oct 30 '24 18:10 wmertens

I have this warning in dev mode but it's working fine in dev and preview with v2.

QWIK WARN You are trying to add an event "onError-boundary$" using `useOn` hook, but a node to which you can add an event is not found. Please make sure that the component has a valid element node. 

v2 will be release soon so I marked this issue with STATUS-3: solved by V2, thanks.

gioboa avatar Nov 27 '24 13:11 gioboa