title: Failed to execute 'importScripts' on 'WorkerGlobalScope'
body: <p>I'm trying to enable OneSignal notification in my pwa nuxtjs app. </p>
  
  <pre><code>modules: [
      '@nuxtjs/axios',
      '@nuxtjs/onesignal',
      '@nuxtjs/pwa',
    ],
  
    oneSignal: {
      cdn: true,
      OneSignalSDK: 'https://cdn.onesignal.com/sdks/OneSignalSDK.js',
      init: {
        appId: 'xxxxxxxxxxx',
        allowLocalhostAsSecureOrigin: true,
        welcomeNotification: {
            disable: true
        }
      }
    },
    workbox: {
      dev: true,
      debug: true
    },
  </code></pre>
  
  <p>I'm getting the popup notification and when I press <code>Accept</code>, the following error occures: </p>
  
  <blockquote>
    <p>A bad HTTP response code (404) was received when fetching the script.
    sw.js?1557093232129:1 Uncaught DOMException: Failed to execute</p>
    
    <p>'importScripts' on 'WorkerGlobalScope': The script at
    '<a href="http://localhost:3333/_nuxt/workbox.dev.4c4f5ca6.js" rel="nofollow noreferrer">http://localhost:3333/_nuxt/workbox.dev.4c4f5ca6.js</a>' failed to load.
        at <a href="http://localhost:3333/sw.js?1557093232129:1:1" rel="nofollow noreferrer">http://localhost:3333/sw.js?1557093232129:1:1</a>
        at <a href="http://localhost:3333/OneSignalSDKWorker.js?appId=xxxxxxxx:1:1" rel="nofollow noreferrer">http://localhost:3333/OneSignalSDKWorker.js?appId=xxxxxxxx:1:1</a>
    (anonymous) @ sw.js?1557093232129:1</p>
    
    <p>ServiceWorkerManager.js:371 [Service Worker Installation] Installing
    service worker failed TypeError: Failed to register a ServiceWorker:
    ServiceWorker script evaluation failed</p>
  </blockquote>
  
  <p>I have the <code>sw.js</code> file in the static folder as well. Found similar issues in the Github issues section, but no real solutions.</p>