Open History to see the last commit
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>