I just changed an image path in a template in my Phoenix app and reloaded the page. This error message appeared in the browser:
CompilationError at GET /
Showing console output
== Compilation error on file web/views/page_view.ex ==
** (CompileError) web/views/page_view.ex:1: cannot define module Youli.PageView because it is currently being defined in web/views/page_view.ex:1
(stdlib) erl_eval.erl:657: :erl_eval.do_apply/6
Running mix compile
in the terminal made the problem go away, but isn't there some way to skip that step?