Skip to content
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

getting error while running php artisan ui adminlte-localized --auth #1090

Open
dhsont opened this issue Nov 27, 2023 · 1 comment
Open

getting error while running php artisan ui adminlte-localized --auth #1090

dhsont opened this issue Nov 27, 2023 · 1 comment

Comments

@dhsont
Copy link

dhsont commented Nov 27, 2023

Truying to run following command on fresh laravel project with infyom lab
php artisan ui adminlte-localized --auth

ErrorException

copy(D:\laragon\www\l10infyom\vendor\infyomlabs\laravel-ui-adminlte\src../adminlte-stubs/bootstrap/vite.config.js): Failed to open stream: No such file or directory

at vendor\infyomlabs\laravel-ui-adminlte\src\AdminLTELocalizedPreset.php:58
54▕ * @return void
55▕ /
56▕ protected static function updateViteConfiguration()
57▕ {
➜ 58▕ copy(DIR.'../adminlte-stubs/bootstrap/vite.config.js', base_path('vite.config.js'));
59▕ }
60▕
61▕ /
*
62▕ * Update the Sass files for the application.

1 vendor\infyomlabs\laravel-ui-adminlte\src\AdminLTELocalizedPreset.php:58

2 vendor\infyomlabs\laravel-ui-adminlte\src\AdminLTELocalizedPreset.php:45
InfyOm\AdminLTEPreset\AdminLTELocalizedPreset::updateViteConfiguration()

working fine for non localized

php artisan ui adminlte --auth

@saeed-isfahani
Copy link

saeed-isfahani commented Feb 12, 2024

I have same problem with php artisan ui adminlte-localized --auth.
Is there any solution?

EDIT: After some manipulation I solve my problem this way:
You can add a slash to /vendor/infyomlabs/laravel-ui-adminlte/src/AdminLTELocalizedPreset.php:58 before ../adminlte-stubs/...
So you must have this line after:
copy(__DIR__ . '/../adminlte-stubs/bootstrap/vite.config.js', base_path('vite.config.js'));

@dhsont

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants