Bagisto Forum

    Bagisto

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

    Error to install PWA by composer

    Bug Report
    3
    13
    1146
    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.
    • C
      chrisklein00 last edited by

      Hello,

      We cannot install the PWA extension. We attach the result ...

      Thank you.

      php -d memory_limit=2G composer.phar require bagisto/pwa
      
                                                                                                                                
        [InvalidArgumentException]                                                                                              
        Could not find a matching version of package bagisto/pwa. Check the package spelling, your version constraint and that  
         the package is available in a stability which matches your minimum-stability (stable).                                 
                                                                                                                                
      
      1 Reply Last reply Reply Quote 0
      • V
        Vaishali Agarwal last edited by

        Hi @chrisklein00 ,
        could you mention your bagisto version( go to the .env and check app_version) and the steps you have followed to install the PWA.

        C 2 Replies Last reply Reply Quote 0
        • P
          pask last edited by

          @chrisklein00 said in Error to install PWA by composer:

          Hi, I have the same problem with Bagisto 1.2.0 version...
          tried with manual installation but at the publish:vendor command returns "can't locate </var/www/html/packages/Webkul/PWA/src/resources/database/migrations>" error...

          1 Reply Last reply Reply Quote 0
          • V
            Vaishali Agarwal last edited by

            @pask
            bagisto v1.2.0 is having a bug with vendor:publish command which is already resolved here https://github.com/bagisto/bagisto/issues/3807 please update your code with the mentioned commit in this issue and try again.

            1 Reply Last reply Reply Quote 0
            • C
              chrisklein00 @Vaishali Agarwal last edited by

              @Vaishali-Agarwal said in Error to install PWA by composer:

              Hi @chrisklein00 ,
              could you mention your bagisto version( go to the .env and check app_version) and the steps you have followed to install the PWA.

              My version is APP_VERSION=1.2.0

              1 Reply Last reply Reply Quote 0
              • C
                chrisklein00 @Vaishali Agarwal last edited by

                @Vaishali-Agarwal said in Error to install PWA by composer:

                Hi @chrisklein00 ,
                could you mention your bagisto version( go to the .env and check app_version) and the steps you have followed to install the PWA.

                To install:

                1. Or you can install Bagisto from your console.

                Execute these commands below, in order

                1. composer create-project bagisto/bagisto-standard
                2. php artisan bagisto:install
                1 Reply Last reply Reply Quote 0
                • P
                  pask last edited by

                  Seems that pwa is not compatible with the 1.2.0 bagisto version...it's possible?

                  1 Reply Last reply Reply Quote 0
                  • V
                    Vaishali Agarwal last edited by

                    @pask @chrisklein00
                    Yes, currently PWA is not compatible with bagisto v1.2.0.
                    The team is working on that as you can check with the master branch is already comptabile now with bagisto v1.2.0 and soon will be released.

                    Get PWA with master(development branch), you need to hit command

                    composer require bagisto/pwa:dev-master
                    
                    P 1 Reply Last reply Reply Quote 0
                    • P
                      pask last edited by

                      @Vaishali-Agarwal , thanks for your reply, after that I have installed the pwa extension like your instructions and the installation look be fine, in the admin menu appears the configurations voices but nothing is created on packages/Webkul/PWA and at the mobile the layout is the same than normal mobile view...

                      1 Reply Last reply Reply Quote 0
                      • V
                        Vaishali Agarwal last edited by

                        Hi @pask
                        Thanks for the update.
                        could you please raise this here https://github.com/bagisto/laravel-pwa/issues so that team can check with the same.

                        Thanks

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          pask @Vaishali Agarwal last edited by

                          This post is deleted!
                          1 Reply Last reply Reply Quote 0
                          • P
                            pask @Vaishali Agarwal last edited by

                            @Vaishali-Agarwal said in Error to install PWA by composer:

                            @pask @chrisklein00
                            Yes, currently PWA is not compatible with bagisto v1.2.0.
                            The team is working on that as you can check with the master branch is already comptabile now with bagisto v1.2.0 and soon will be released.

                            Get PWA with master(development branch), you need to hit command

                            composer require bagisto/pwa:dev-master
                            

                            I have cleared and reinstalled all Bagisto framework and installed PWA according your instruction, at the /mobile route of my test site a blank page appear with the error in console: Uncaught FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser).
                            at Object.messaging (http://159.89.13.130/vendor/webkul/pwa/assets/js/app.js:1:395307)
                            at t._getService (http://159.89.13.130/vendor/webkul/pwa/assets/js/app.js:1:427899)
                            at t.<computed> [as messaging] (http://159.89.13.130/vendor/webkul/pwa/assets/js/app.js:1:429940)
                            at Object.h [as messaging] (http://159.89.13.130/vendor/webkul/pwa/assets/js/app.js:1:429713)
                            at Object.J66Q (http://159.89.13.130/vendor/webkul/pwa/assets/js/app.js:1:395592)
                            at n (http://159.89.13.130/vendor/webkul/pwa/assets/js/app.js:1:110)
                            at Object.0 (http://159.89.13.130/vendor/webkul/pwa/assets/js/app.js:1:64437)
                            at n (http://159.89.13.130/vendor/webkul/pwa/assets/js/app.js:1:110)
                            at http://159.89.13.130/vendor/webkul/pwa/assets/js/app.js:1:452
                            at http://159.89.13.130/vendor/webkul/pwa/assets/js/app.js:1:461

                            1 Reply Last reply Reply Quote 0
                            • V
                              Vaishali Agarwal last edited by

                              @pask
                              Have you added the server API key inside configuration->PWA

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