Gotchas

Something's always broken. That's the spirit of tech. You'll find here some weird gotchas and how to address them if you end up with one.

[yarn new] WiFi went down and yarn new was interrupted, how do I proceed?

Let's say you were adding a demo called awais and had placed images in the UPLOAD folder. You ran yarn new and mid process the internet went down. Process broke and you saw some weird error. Where do you go from here?

  1. Copy the images you had some place else
  2. Run yarn reset
  3. Make sure the UPLOAD directory is empty. Otherwise, delete anything you see in UPLOAD
  4. If you deleted something, then git commit/push git commit -m '🐛 FIX: Broken process' && git push
  5. Everything should work now. Start again yarn new demoName

Site keeps loading and console says ServiceWorker failed 404?

📺 VIDEO: Problem + Solution →

  • A new build of site was added.
  • ServiceWorker failed and didn't unregister/register itself.
  • You have to clear the site cache + storage and refresh the page.

To clear storage go to Inspect ❯ Application tab ❯ Clear Storage ❯ Clear Site Data button.

Google's guide on clearing storage.