title: Please ensure that your service worker file contains the following:/(const precacheManifest =)\[\](;)/
body: <p>I am quite new to react React workbox. I am trying to make my Electron react App have the ability to cache all images and data to be made available while it is offline.
  This is exactly what I am trying to accomplish as in this youtube video. from 14:00 to 21:00 minutes: Building PWAs with React and Workbox, <code>/watch?v=Ok2r1M1jM_M</code></p>
  
  <p>But this command is giving </p>
  
  <pre><code>"start-sw":"workbox injectManifest workbox-config.js &amp;&amp; workbox copylibraries build/ &amp;&amp; http-server build/ -c 0"
  </code></pre>
  
  <p>This error: </p>
  
  <pre><code>C:\Users\rajesh.ram\Desktop\Day\K\demok\client&gt;npm run start-sw
  
  &gt; client@0.1.0 start-sw C:\Users\rajesh.ram\Desktop\Day\K\demok\client
  &gt; workbox injectManifest workbox-config.js &amp;&amp; workbox copylibraries build/ &amp;&amp; http-server build/ -c 0
  
  Using configuration from C:\Users\rajesh.ram\Desktop\Day\K\demok\client\workbox-config.js.
  Service worker generation failed:
  
  Unable to find a place to inject the manifest. Please ensure that your service worker file contains the followin
  
  g:/(const precacheManifest =)\[\](;)/
  </code></pre>
  
  <p>Please help me fix this or suggest alternative packages/repositories/videos to make it possible.</p>