Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Gotcha #1: Forgetting to regenerate index.*.js

Oliver George edited this page Jun 2, 2019 · 1 revision

The Figwheel used for REPL and live coding post describes some of the key elements required to build our application.

There's an easy step to forget when developing: lein figwheel may start failing or generate code which won't run if you've changed something which requires the index.*.js files be regenerated.

You may need to re-natal require-all and re-natal use-figwheel before your code builds and runs correctly.

For example:

  • Code uses new images
  • Code requires new modules
  • Switching between android device types (real, avd, genymotion)
  • Switching between ios device types (simulator, real)
  • Enabling/disabling source maps
  • Enabling/disabling auto require

It'd be nice if there was a check that would warn when something important had changed but I'm not aware of one just now.