mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 06:35:10 +00:00
23 lines
387 B
Vue
23 lines
387 B
Vue
<template>
|
|
<div>
|
|
<div>
|
|
<h1>{{ error?.message }}</h1>
|
|
This is the error page 😱
|
|
<div
|
|
v-if="error?.data?.path"
|
|
data-testid="path"
|
|
>
|
|
Path: {{ error.data.path }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { NuxtError } from '#app'
|
|
|
|
defineProps({
|
|
error: Object as () => NuxtError,
|
|
})
|
|
</script>
|