Build on the supported package contract
Use absolutejs-error-boundaries-example through its supported public entry points.
absolutejs-error-boundaries-examplev0.0.1betaDev ToolsA demonstration of AbsoluteJS's convention-based error boundary system across React, Vue, Svelte, and Angular — all running in a single project with server-side rendering.
# Private workspace project: ~/abs/examples/error-boundariesA demonstration of AbsoluteJS's convention-based error boundary system across React, Vue, Svelte, and Angular — all running in a single project with server-side rendering.
AbsoluteJS uses a file-naming convention to automatically handle errors during SSR:
Convention File — Purpose
error.{tsx,vue,svelte,ts} — Default error boundary for a framework
PageName.error.tsx — Page-specific error boundary (overrides default)
not-found.{tsx,vue,svelte,ts} — 404 fallback page
loading.{tsx,vue,svelte,ts} — Loading state fallback — coming soon
When a component throws during server-side rendering, AbsoluteJS catches the error and renders the matching error boundary with the error details.
Route — Description
/ — Landing page
/react — React page (renders normally)
/broken-react — React page that throws an error
/vue — Vue page (renders normally)
/broken-vue — Vue page that throws an error
/svelte — Svelte page (renders normally)
/broken-svelte — Svelte page that throws an error
/angular — Angular page (renders normally)
/broken-angular — Angular page that throws an error
Error Convention Files
Each framework has its own error convention file that receives the thrown error as a prop:
React — error.tsx
Vue — error.vue
Svelte — error.svelte
Angular — error.ts
Page-Specific Overrides
Name an error file after a page to override the default for that specific route:
Loading Convention (Coming Soon)
Loading state convention files will follow the same pattern, providing fallback UI while pages are loading during SSR streaming:
AbsoluteJS — full-stack framework
Elysia — backend server
React 19, Vue 3, Svelte 5, Angular 21
TypeScript
Outcomes
Use absolutejs-error-boundaries-example through its supported public entry points.
Hardening checklist
Follow in order
Working example for Getting Started.
# install dependencies
npm install
# start the dev server
npm run devEach framework has its own error convention file that receives the thrown error as a prop:
export default function ErrorPage({ error }: { error: { message: string; stack?: string } }) {
return <div>{error.message}</div>;
}Scripts declared by this package manifest.