© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
ngoquocdat

Using Alpine.js inside the existing app with Filament table

Hi, I have a Laravel application and am using Alpine and have a Filament Table installed inside the application

- app.js
import Alpine from 'alpinejs'

Alpine.data('some-data', () => ({
    //
})

Alpine.start()
import Alpine from 'alpinejs'

Alpine.data('some-data', () => ({
    //
})

Alpine.start()


- layouts/app.blade.php
@filamentScripts
<script src="{{ asset('js/app.js') }}"></script>
@filamentScripts
<script src="{{ asset('js/app.js') }}"></script>



But I'm having a problem: a javascript error is reported in the browser console when accessing a page that uses the Filament table.

Uncaught TypeError: Cannot read properties of undefined (reading '$on')
    at Proxy.init (eval at safeAsyncFunction (app.js:605:14), <anonymous>:13:24)
    at app.js:591:23
    at tryCatch (app.js:545:12)
    at evaluate (app.js:571:32)
    at Function.<anonymous> (app.js:2924:27)
    at flushHandlers (app.js:709:46)
    at stopDeferring (app.js:714:5)
    at deferHandlingDirectives (app.js:717:3)
    at initTree (app.js:200:3)
    at app.js:155:5
Uncaught TypeError: Cannot read properties of undefined (reading '$on')
    at Proxy.init (eval at safeAsyncFunction (app.js:605:14), <anonymous>:13:24)
    at app.js:591:23
    at tryCatch (app.js:545:12)
    at evaluate (app.js:571:32)
    at Function.<anonymous> (app.js:2924:27)
    at flushHandlers (app.js:709:46)
    at stopDeferring (app.js:714:5)
    at deferHandlingDirectives (app.js:717:3)
    at initTree (app.js:200:3)
    at app.js:155:5


So is there any way to fix this problem?

Thanks guys.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Alpine component with ID [table] not found for package [filament/tables].
FilamentFFilament / ❓┊help
14mo ago
how to put filament table inside filament form
FilamentFFilament / ❓┊help
2y ago
Problem (Filament v4 – Tables / Filters / Alpine / Description):
FilamentFFilament / ❓┊help
3w ago
Using Sushi with Filament Table and refresh the data
FilamentFFilament / ❓┊help
16mo ago