You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a production environment not found the form-components.js file, and nothing works:
I don't know why but it works locally. I'm using Vite. Locally works with npm run dev and build
I don't see in the Docs if I have to publish something, I use @fcStyles and @fcScripts correctly...
Did I miss something? I'm the only one?
Steps to reproduce
No response
Relevant log output
GET /form-components/form-components.js?id=03553f899311a06c3381 404
players:1 Refused to execute script from '/form-components/form-components.js?id=03553f899311a06c3381' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
The text was updated successfully, but these errors were encountered:
The package handles this file the same way that Laravel Livewire handles its JS file that it loads. As far as I know, there shouldn't be any issues hitting the controller for that route unless your server isn't configured correctly. Personally, I haven't had any issues with it like this.
If you have issues with the external script loading, you could stop trying to load it with the @fcJavaScript directive, and instead import the source into your own js and compile it that way, but that's a measure that shouldn't ordinarily have to be taken.
Laravel Form Components Version
^7.1
Laravel Version
9.19
Alpine Version
3.10
Bug description
In a production environment not found the
form-components.js
file, and nothing works:I don't know why but it works locally. I'm using Vite. Locally works with npm run dev and build
I don't see in the Docs if I have to publish something, I use @fcStyles and @fcScripts correctly...
Did I miss something? I'm the only one?
Steps to reproduce
No response
Relevant log output
The text was updated successfully, but these errors were encountered: