Fix 404.tsx build error — statusCode API removed in Qwik City v1.20 #29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
bun run buildfails with:In Qwik City v1.20,
RequestEventuses.status()instead of.statusCode().Fix
Change the destructured
statusCodetoevand callev.status(404).Blocks Issue #8 verification (GA4 via Partytown).
Fixed in commit
49de7ae.Changed
({ statusCode }) => statusCode(404)to(ev) => ev.status(404)— the oldstatusCodeproperty was removed fromRequestEventin Qwik City v1.20. The replacement is.status(statusCode: number): number.