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
    1. Home
    2. elburgl69
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Best 0
    • Groups 0

    elburgl69

    @elburgl69

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    elburgl69 Follow

    Latest posts made by elburgl69

    • RE: InjectManifest precaching not working

      The uncaught error prevents correctly loading your event listeners for PWA. The root cause is in the example custom-service-worker.js|ts file in the documentation that contains an error at the end.

      // Non-SSR fallback to index.html
      // Production SSR fallback to offline.html (except for dev)
      if (process.env.MODE !== 'ssr' || process.env.PROD) {
        registerRoute(
          new NavigationRoute(
            createHandlerBoundToURL(process.env.PWA_FALLBACK_HTML),
            { denylist: [/sw\.js$/, /workbox-(.)*\.js$/] }
          )
        )
      }
      

      Change is to:

      // Non-SSR fallback to index.html
      // Production SSR fallback to offline.html (except for dev)
      if (process.env.MODE === 'ssr' && process.env.PROD) {
        registerRoute(
          new NavigationRoute(
            createHandlerBoundToURL(process.env.PWA_FALLBACK_HTML),
            { denylist: [/sw\.js$/, /workbox-(.)*\.js$/] }
          )
        )
      }
      
      posted in Framework
      E
      elburgl69