From e08a493bac0b8888a45b15fc7358e8ae7302f419 Mon Sep 17 00:00:00 2001 From: hecateball Date: Tue, 26 Jul 2022 22:36:58 +0900 Subject: [PATCH] fix(nuxt): add error event declaration to the `` component (#6141) --- packages/nuxt/src/app/components/nuxt-error-boundary.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/nuxt/src/app/components/nuxt-error-boundary.ts b/packages/nuxt/src/app/components/nuxt-error-boundary.ts index 0bcb2f840c..1cf3075087 100644 --- a/packages/nuxt/src/app/components/nuxt-error-boundary.ts +++ b/packages/nuxt/src/app/components/nuxt-error-boundary.ts @@ -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()