Runable v1.0.0-alpha.20
Why Runable? Docs Modules Work with AI Blog About Changelog
  • 01Why Runable?
  • 02Docs
  • 03Modules
  • 04Work with AI
  • 05Blog
  • 06About
  • 07Changelog
Vue without a fixed server runtime.
Getting Started Structure Integrations Guide MCP API
  • Getting Started Structure Integrations Guide MCP API
      .output.apptsconfig.app.jsonapppageslayoutscomponentscomposablesglobalspluginsmiddlewarescssapp.vueerror.vuemodulesnode_modulespublic.env.gitignorerunable.config.tsserver.tspackage.jsontsconfig.jsontsconfig.node.json

error.vue

Display a consistent interface when an error reaches the Vue application.

Create app/error.vue to customize the application's error screen.

<!-- app/error.vue -->
<script setup lang="ts">
const { error, clearError } = useAppError();
</script>

<template>
  <main>
    <h1>An error occurred</h1>
    <p>{{ error?.message }}</p>
    <button type="button" @click="clearError()">Try again</button>
  </main>
</template>

Runable captures Vue errors passed to the application handler and exposes their state through useAppError(). Keep the error component robust: avoid reusing logic that may have caused the failure.

HTTP errors remain in the backend

error.vue concerns the Vue interface. An error produced by an API route must still be converted into an HTTP response by Express, Fastify, Hono, or your other backend.

Report an issue Edit this page
app.vue

Customize the root component of the Vue application.

modules

Develop local Runable modules before extracting them into a package.

Runable

The Vue framework that brings productive conventions to any backend.

Product

  • Why Runable
  • Documentation
  • Installation
  • Integrations

Project

  • About
  • Blog
  • Changelog
  • Sponsor

Community

  • GitHub
  • Issues
  • Discussions
  • Bluesky

© 2026 Runable. Released under the MIT License.

Open source Built with Vue and Runable