-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load Flux from route flux/flux.js/css #444
Comments
My guess is that you are using Laravel Herd, and if that is the case, Laravel Herd uses Nginx, which has a problem with rendering .css and .js files of the Flux UI. To resolve this, you should add the following code to your Nginx configuration.
|
There is no Herd in nativePhp (correct me if i'm wrong), the php binary is used and chromium is loading the files |
I haven't tried to build an app with Flux yet, but I can't see why it would be a problem. Highly unlikely that Herd has anything to do with what @labomatik is seeing. The failing Is the Flux package symlinked in some way in your development environment? |
Thanks Simon for your answer, i dived into flux and got similar issue also with livewire. |
It may be to do with some sort of caching. This may have something to do with a recent change. We removed the I will investigate. I have some theories. |
Alright, I tried Livewire Flux and NativePHP on a fresh install. I was mistaken about the Laravel Herd part, but unfortunately, I couldn’t reproduce your problem, as everything seemed to work well and all the assets loaded correctly. |
Flux definitely works. I'm not sure if your problem is Windows-speicifc, but I'm working on an app with Flux on Mac and it works well. I haven't run the build on it yet (waiting for Simon to finish up on some obfuscation stuff), but you can try to run it with |
The issue is happening when you build the package using I make it working by copy/pasting the js and css from Flux inside the public folder. |
What were you trying to do?
I'm trying to integrate flux inside a standard laravel app with NativePHP
What happened?
On my dev environnement all is perfect, files from flux can be loaded
After installation on windows machine here are the errors that are displayed using DevTools:
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://127.0.0.1:8100/flux/flux.css?id=3324411c
In sentry we have more details:
filemtime(): stat failed for /Users/cris/project_nativephp/vendor/livewire/flux/src/../../flux-pro/dist/flux.css
How to reproduce the bug
Install Flux in the project
https://fluxui.dev/docs/installation
Package Versions
PHP Version
8.2.0
Laravel Version
11.34
Node Version
21.6.2
Which operating systems have you seen this occur on?
Windows
OS version
win 11Pro 24H2
Notes
No response
The text was updated successfully, but these errors were encountered: