Missing vendor/wireui/wireui/dist/wireui.css
Describe the bug Missing vendor/wireui/wireui/dist/wireui.css on wireui/wireui version "2.4".
So we have exceptions: filemtime(): stat failed for [...] vendor/wireui/wireui/src/Http/Controllers/../../../dist/wireui.css
To Reproduce Install wireui 2.4 and do a composer run dev.
Dependencies WireUI Version: 2.4.2 Laravel Version: 12.0 "livewire/flux": "^2.1.1" "livewire/volt": "^1.7.0", Alpine.js Version: 3.14.9 Livewire Version: 3.6.1 Lang: en_US
Desktop (If applicable, please complete the following information): OS: Ubuntu Browser: Chrome and Firefox
Additional context Add any other context about the problem here.
Hi @leandroneves-net , wireui css is no longer used. If your app has <wireui:styles />, please remove it.
This tag is used only for testing purposes. The CSS is built and integrated with your project, Tailwind
Hey, follow up on this -- Been having the same issue, have no reference to wireui.css and have nowhere in the project that has any format of the wireui script tag (neither <wireui:styles /> nor @wireUiStyles) but still repeatedly receive this error. I believe the issue stems from WireUiAssetsController in the styles method, and could be resolved if said method was removed.
Edit: Resolved error by overwriting file and using Laravel's alias loader to point to our own version of the WireUiAssetsController in the boot method of the AppServiceProvider. Then in our version of the controller just returning an empty response.
$loader = \Illuminate\Foundation\AliasLoader::getInstance();
$loader->alias(WireUiAssetsController::class, [our_version]WireUiAssetsController::class);
class [our_version]WireUiAssetsController extends Controller
{
public function scripts(): Response|BinaryFileResponse
{
return Utils::pretendResponseIsFile(base_path('vendor').'/wireui/wireui/dist/wireui.js', 'application/javascript');
}
public function styles(): Response|BinaryFileResponse|\Illuminate\Contracts\Routing\ResponseFactory
{
return new Response(content: '', status: 200);
}
}