App.js import my bootstrap.js missing module
Hello i wanted to add bootstrap.js in mine app.js but then i am missing the module, normally in the laravel docu you add it in the app.blade.php, something like this,
@vite(['resources/js/app.js'])
how do i do this for filament because i am using filament
9 Replies
So you want to load bootstrap and tailwind....
no , by default the bootstrap.js contains (see screenshot) the follewing information what i need to use
Few, justi import it directly into app?
yeah π
normal you just put in the the <head> from the app.blade.php but we don't use that in filament so i need a way to do that
If you want to do it i.e. in the head then:
https://filamentphp.com/docs/3.x/support/assets#registering-javascript-files
That already works man
Else i wouldn't get that error, i really don't know how to register
Solution
Js::make()->module()
Thank you man! that was it π