You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Throwing a ServerError from a server$ function only uses the correct status code in production builds, not during development.
The issue seems to be that vite copies the ServerError class, so when Qwik checks if it is a server error with err instanceof ServerError, the thrown instance is different to the class it is compared with. I could be wrong but this is what it looks like.
Reproduction
N/A
Steps to reproduce
No response
System Info
N/A
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Which component is affected?
Qwik Rollup / Vite plugin
Describe the bug
Throwing a
ServerError
from aserver$
function only uses the correct status code in production builds, not during development.The issue seems to be that vite copies the ServerError class, so when Qwik checks if it is a server error with
err instanceof ServerError
, the thrown instance is different to the class it is compared with. I could be wrong but this is what it looks like.Reproduction
N/A
Steps to reproduce
No response
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: