Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

ErrorPage.vue

17 lines373 Bytes

1<script setup lang="ts">
2import { watchEffect } from 'vue'
3​
4const props = defineProps<{ error: unknown }>()
5​
6watchEffect(() => console.error(props.error))
7</script>
8​
9<template>
10 <div id="error-page">
11 <h1>Oops!</h1>
12 <p>Sorry, an unexpected error has occurred.</p>
13 <p>
14 <i>{{ error instanceof Error ? error.message : '' }}</i>
15 </p>
16 </div>
17</template>