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).
FileUpload in my form schema:
Form in view file:
Could anyone please help with this?
Thank you π
Solution:Jump to solution
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...
GitHub
GitHub - Accudio/async-alpine: Async Alpine brings advanced code sp...
Async Alpine brings advanced code splitting and lazy-loading to Alpine.js components! - Accudio/async-alpine
2 Replies
getting this error in console.
Solution
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
GitHub
GitHub - Accudio/async-alpine: Async Alpine brings advanced code sp...
Async Alpine brings advanced code splitting and lazy-loading to Alpine.js components! - Accudio/async-alpine