Custom async alpine component field with vite and without panel
I have an existing laravel installation with filament components (without the panel builder). Now I want to add a custom field with an async alpine component and do not want to install esbuild since I already have vite. In my
app.js file i register the component.
My base layout file ends with
But when initializing the component with the following code
I get the error that tselect is not defined. When I remove the @filamentScripts the async component loads. Does anyone has an Idea how to get this working?1 Reply
I just managed to get it working with the following code
But why does it not work normally?