diff --git a/packages/nuxt/src/app/components/island-renderer.ts b/packages/nuxt/src/app/components/island-renderer.ts index 62d83f1126..d973946be1 100644 --- a/packages/nuxt/src/app/components/island-renderer.ts +++ b/packages/nuxt/src/app/components/island-renderer.ts @@ -1,5 +1,5 @@ import type { defineAsyncComponent } from 'vue' -import { createVNode, defineComponent } from 'vue' +import { createVNode, defineComponent, onErrorCaptured } from 'vue' import { createError } from '../composables/error' @@ -23,6 +23,10 @@ export default defineComponent({ }) } + onErrorCaptured((e) => { + console.log(e) + }) + return () => createVNode(component || 'span', { ...props.context.props, 'nuxt-ssr-component-uid': '' }) } })