title: Unexpected token < in JSON at position 0 at Driver.<anonymous> (ngsw-worker.js:2353)
body: <p>I am trying to include service worker in my angular 7 application.
  I used the following command for this:</p>
  
  <pre><code>ng add @angular/pwa
  </code></pre>
  
  <p>My lighthouse report says:</p>
  
  <pre><code>Current page does not respond with a 200 when offline
  </code></pre>
  
  <p>To solve the above problem from lighthouse report, i added my site url in ngsw-config.json file.</p>
  
  <p><strong>My ngsw-config.json file:</strong></p>
  
  <pre><code>{
    "index": "/index.html",
    "assetGroups": [
      {
        "name": "app",
        "installMode": "prefetch",
        "resources": {
          "files": [
            "/favicon.ico",
            "/index.html",
            "/*.css",
            "/*.js"
          ]
        }
      },
      {
        "name": "assets",
        "installMode": "lazy",
        "updateMode": "prefetch",
        "resources": {
          "files": [
            "/assets/**"
          ],
          "urls": [
            "https://getcoursetube.com/**"
          ]
        }
      }
    ]
  }
  </code></pre>
  
  <p>But after that i am getting the following error:</p>
  
  <pre><code>Uncaught (in promise) SyntaxError: Unexpected token &lt; in JSON at position 0
      at Driver.&lt;anonymous&gt; (ngsw-worker.js:2353)
      at Generator.next (&lt;anonymous&gt;)
      at fulfilled (ngsw-worker.js:1772)
  </code></pre>
  
  <p>and lighthouse report still says Current page does not respond with a 200 when offline</p>