Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(nuxt): add emits.error declaration to NuxtErrorBoundary component #6141

Merged
merged 1 commit into from
Jul 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/nuxt/src/app/components/nuxt-error-boundary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ import { defineComponent, ref, onErrorCaptured } from 'vue'
import { useNuxtApp } from '#app'

export default defineComponent({
emits: {
error (_error: unknown) {
pi0 marked this conversation as resolved.
Show resolved Hide resolved
return true
}
},
setup (_props, { slots, emit }) {
const error = ref(null)
const nuxtApp = useNuxtApp()
Expand Down