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

Commit

Permalink
fix(nuxt): add error event declaration to the <NuxtErrorBoundary> c…
Browse files Browse the repository at this point in the history
…omponent (#6141)
  • Loading branch information
hecateball committed Jul 26, 2022
1 parent a585086 commit e08a493
Showing 1 changed file with 5 additions and 0 deletions.
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) {
return true
}
},
setup (_props, { slots, emit }) {
const error = ref(null)
const nuxtApp = useNuxtApp()
Expand Down

0 comments on commit e08a493

Please sign in to comment.