Uncaught TypeError: Cannot read properties of undefined (reading 'dispatchEvent')

Clicking the button to add an item in my relation manager I've added to one of my resource pages yields the following error and button action does not complete:
VM26130:21 Uncaught TypeError: Cannot read properties of undefined (reading 'dispatchEvent')
at eval (eval at safeAsyncFunction (livewire.js?id=cc800bf4:1176:21), <anonymous>:21:43)
at livewire.js?id=cc800bf4:1521:9
at releaseNextTicks (livewire.js?id=cc800bf4:1529:24)
at livewire.js?id=cc800bf4:1516:9
VM26130:21 Uncaught TypeError: Cannot read properties of undefined (reading 'dispatchEvent')
at eval (eval at safeAsyncFunction (livewire.js?id=cc800bf4:1176:21), <anonymous>:21:43)
at livewire.js?id=cc800bf4:1521:9
at releaseNextTicks (livewire.js?id=cc800bf4:1529:24)
at livewire.js?id=cc800bf4:1516:9
Has anyone experienced this before? I am so stuck and I have tried all sorts of approaches to make this work. Thank you in advance for any input!
4 Replies
awcodes
awcodes3mo ago
Share your code please.
DJ SneezyCheese
DJ SneezyCheese3mo ago
I've included the resource, view page, model, and associated relation manager that is yielding the errors.
DJ SneezyCheese
DJ SneezyCheese3mo ago
Thank you in advance!
awcodes
awcodes3mo ago
Please submit an issue on GitHub. I think you both are experiencing similar issues despite different error messages. Not seeing anything off in your code.
Want results from more Discord servers?
Add your server