Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Problem with admin layout creation - Vite

    Modules
    2
    3
    472
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • diverti
      diverti last edited by

      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.php

      The 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
      
      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        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

        diverti 1 Reply Last reply Reply Quote 0
        • diverti
          diverti @Rishabh-Webkul last edited by

          @Rishabh-Webkul

          Thank you! The problem was that i missed the baigsto-vite.php
          Also i had to redo the whole page in my package.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post