No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

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

    @quasar/app v1.8.0/3 released! Major improvements.

    Announcements
    3
    12
    284
    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.
    • rstoenescu
      rstoenescu Admin last edited by rstoenescu

      https://github.com/quasarframework/quasar/releases/tag/%40quasar%2Fapp-v1.8.0

      Small behavior change

      • For perf reasons (which is ironic), the default value of quasar.conf.js > build > “preloadChunks” is now “false”. You can however enable it back by setting it to “true”.
      • New information on HMR with a PWA: https://quasar.dev/quasar-cli/developing-pwa/hmr-for-dev

      New

      • feat(app): perf improvements for the PWA and SSR+PWA mode; your PWA will now be accessible offline even if starting browser with a non-root path of your app
      • feat(app): Improved the build progress bar
      • feat(app): Enhance the “quasar new” command; it can now generate TS assets too #6886
      • feat(app): include nodeIntegrationInWorker for Electron in template

      Fixes

      • fix(bex): add TS support to BEX mode #6883 #6887
      1 Reply Last reply Reply Quote 1
      • J
        jitendra16 last edited by

        @rstoenescu Getting error after upgrading

        quasar build -m pwa
        
        
         Build mode........ pwa
         Pkg quasar........ v1.10.0
         Pkg @quasar/app... v1.8.0
         Debugging......... no
         Publishing........ no
        
         app:extension Running "@quasar/qcalendar" Quasar App Extension... +0ms
         app:quasar-conf Reading quasar.conf.js +11ms
         app:quasar-conf Extension(@quasar/qcalendar): Extending quasar.conf... +5ms
         App Extension (qcalendar) Info: 'Adding qcalendar boot reference to your quasar.conf.js'
         App Extension (qcalendar) Info: 'Adding calendar-daily.styl css reference to your quasar.conf.js'
         App Extension (qcalendar) Info: 'Adding calendar-weekly.styl css reference to your quasar.conf.js'
         app:workbox [InjectManifest] Using your custom service-worker written file +1s
         app:webpack Extending PWA Webpack config +41ms
         app:artifacts Cleaned build artifact: "/Applications/MAMP/htdocs/lumen/school_front/school_app/dist/pwa" +12ms
         app:generator Generating Webpack entry point +0ms
         app:build Building... +9ms
        
         • Compiling:
         └── PWA ████████████████████ 95% emitting manifest.json
        
        (node:5572) UnhandledPromiseRejectionWarning:   ValidationError: "runtimeCaching" is not a supported parameter.
        
        1 Reply Last reply Reply Quote 0
        • rstoenescu
          rstoenescu Admin last edited by

          Clean the yarn.lock / node_modules. Prolly a miss on yarn/npm.
          The workbox version has not changed at all.

          1 Reply Last reply Reply Quote 0
          • rstoenescu
            rstoenescu Admin last edited by

            @jitendra16 Ok, I see what you mean. There was a problem in quasar/app. Released v1.8.2 which fixes it.

            J 1 Reply Last reply Reply Quote 1
            • J
              jitendra16 @rstoenescu last edited by

              @rstoenescu Thank you. Build is successful now.

              1 Reply Last reply Reply Quote 0
              • J
                jitendra16 last edited by jitendra16

                @rstoenescu after upgrade i am having one issue of HMR, now home path (’/’) is loaded every time when I save changes in other path. This is irritating in development/debugging. If I clear cache then this problem doesn’t occurs. But now I need to clear browser cache every time before ‘quasar run dev’ .

                J 1 Reply Last reply Reply Quote 0
                • J
                  jitendra16 @jitendra16 last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • rstoenescu
                    rstoenescu Admin last edited by

                    @jitendra16 If you’re using PWA, then it’s normal. Please read how to correctly do it https://quasar.dev/quasar-cli/developing-pwa/hmr-for-dev

                    1 Reply Last reply Reply Quote 1
                    • ssuess
                      ssuess last edited by

                      I also recently have had HMR problems (browser not releasing cache/updating) developing in PWA mode, which I never had until recent updates, so it seems like something has changed in the code base. In any event, I followed the instructions above and have set devtools to ignore SW and this seems to work for now.

                      1 Reply Last reply Reply Quote 0
                      • rstoenescu
                        rstoenescu Admin last edited by

                        @ssuess Quasar App CLI was tampering too much with the workbox config. It’s much better to keep App CLI interfering as little as possible (like now), which is what it has been done. Hence the new docs page on how to handle HMR when on a PWA. It may “feel” harder to use, but at the end of the day it’s just about clicking a checkbox in chrome/ff devtools 🙂 The benefits heavily outweight this downside.

                        1 Reply Last reply Reply Quote 1
                        • ssuess
                          ssuess last edited by ssuess

                          @rstoenescu Thanks for the response, and I understand your motivations. But in practice, after using it for several days in the recommended way, I find this a much worse development experience. Perhaps I am doing something wrong, but even after checking the box to disable caching/bypass for network, I very often have to force reload (shift + reload) after hmr has refreshed the page in the browser to see my changes. And often more than once. It seems that my browsers (latest chromium based edge and firefox on mac os) are having problems displaying the updated code changes. Any other suggestions for getting this to work as it did before? Thanks for any advice.

                          1 Reply Last reply Reply Quote 0
                          • rstoenescu
                            rstoenescu Admin last edited by rstoenescu

                            @ssuess Assuming that you are using GenerateSW, you’d need this worboxOptions:

                            chunks: [ 'some-bogus-chunk' ],
                            runtimeCaching: [
                              { urlPattern: '/', handler: 'NetworkFirst' },
                              { urlPattern: /^http/, handler: 'NetworkFirst' }
                            ]
                            

                            Remember to only apply this for dev mode. In quasar.conf.js: workboxOptions: ctx.dev ? optionsAbove : {}
                            But I recommend just using Google Chrome instead of above.

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