title: Workbox 5 syntax error - Uncaught TypeError: workbox.expiration.CacheableResponsePlugin is not a constructor
body: <p>I'm trying to set up a simple Service Worker for a small static site, but I get a service worker console error:</p>
  <p><code>sw.js:59 Uncaught TypeError: workbox.expiration.CacheableResponsePlugin is not a constructor</code></p>
  <p>This is at the line  <code>new workbox.expiration.CacheableResponsePlugin</code></p>
  <p>Any suggestions on how to fix this would be appreciated.</p>
  <pre><code>  workbox.routing.registerRoute(
      /\.(?:html)$/,
      new workbox.strategies.NetworkFirst({
        cacheName: 'html-cache',
        plugins: [
          new workbox.expiration.CacheableResponsePlugin({
            statuses: [0, 200],
          }),
  
          new workbox.expiration.ExpirationPlugin({
            maxEntries: 50,
            maxAgeSeconds: 5 * 60,
          })
        ]
      })
    )
  </code></pre>