Error with FileUpload in Livewire nested component
Hello All,
I am using Filament forms in one of the Livewire components which is nested in another full-page Livewire component. filpond field is throwing the bellow error in the console when I upload the file the first time,
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'insertBefore')
But it works perfectly when I try to upload the file a second time (without page reload).
async-alpine was causing this issue. I have loaded this wrapper externally into my app layout file, working perfectly after removing this. https://github.com/Accudio/async-alpine