mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
fix(nuxt): log errors rendering islands (#24356)
This commit is contained in:
parent
c2b8adbb93
commit
7cce0ef6e6
@ -1,5 +1,5 @@
|
|||||||
import type { defineAsyncComponent } from 'vue'
|
import type { defineAsyncComponent } from 'vue'
|
||||||
import { createVNode, defineComponent } from 'vue'
|
import { createVNode, defineComponent, onErrorCaptured } from 'vue'
|
||||||
|
|
||||||
import { createError } from '../composables/error'
|
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': '' })
|
return () => createVNode(component || 'span', { ...props.context.props, 'nuxt-ssr-component-uid': '' })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user