在 Elixir/Phoenix 中,模板更改后,"cannot define module MyApp.PageView because it is currently being defined"

In Elixir/Phoenix, after template change, "cannot define module MyApp.PageView because it is currently being defined"

我刚刚在 Phoenix 应用程序的模板中更改了图像路径并重新加载了页面。此错误消息出现在浏览器中:

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

运行 mix compile 在终端中使问题消失了,但是没有办法跳过这一步吗?

这是 Elixir 中的一个错误,已在 Elixir v1.0.3 中修复。