Problem with admin layout creation - Vite
-
I got the following errors while i tried to migrate my 1.4.5 package to 2.2.0.
My view is at packages/MyVendor/MyPackage/src/Resources/views/admin/index.blade.phpThe menu item is there, but when i try to open it, got these errors:
Call to a member function setBagistoVite() on null (View: C:\laragon\www\websshop\packages\Webkul\Admin\src\Resources\views\components\layouts\index.blade.php) (View: C:\laragon\www\websshop\packages\Webkul\Admin\src\Resources\views\components\layouts\index.blade.php) C:/laragon/www/websshop/packages/Webkul/Theme/src/Themes.php#279 Illuminate\View\ViewException Call to a member function setBagistoVite() on null (View: C:\laragon\www\websshop\packages\Webkul\Admin\src\Resources\views\components\layouts\index.blade.php) C:/laragon/www/websshop/packages/Webkul/Theme/src/Themes.php#279 Illuminate\View\ViewException Call to a member function setBagistoVite() on null C:/laragon/www/websshop/packages/Webkul/Theme/src/Themes.php#279
-
Hello @diverti
Kindly recheck your vite setup and changes in the themes.php that you have done.
You can also visit the blog and reference video regarding vite setup and entry in themes.php file
Blog link -> https://bagisto.com/en/create-custom-theme-in-bagisto/
You tube Video Link -> https://www.youtube.com/watch?v=K3FdBDsXAH8
Thanks & Regards
-
Thank you! The problem was that i missed the baigsto-vite.php
Also i had to redo the whole page in my package.