dillonchanis / vue-error-boundary

A reusable error boundary component for catching JavaScript errors and displaying fallback UIs.
MIT License
91 stars 9 forks source link

Not working: Cannot read properties of null (reading 'setupContext') #11

Open rendomnet opened 2 years ago

rendomnet commented 2 years ago

when im trying to use it I get "Cannot read properties of null (reading 'setupContext')"

<vue-error-boundary :fall-back="null"></vue-error-boundary>

import VueErrorBoundary from 'vue-error-boundary';

dillonchanis commented 2 years ago

Hey @rendomnet!

Do you have a Codesandbox or something with a reproduction? Given the snippet above -- you'll need to provide a fall-back prop (or you can omit it and utilize the very basic one it ships with) but it cannot be null. Also it'll need child components it wraps in case of error!