phoenixframework / phoenix

Peace of mind from prototype to production
https://www.phoenixframework.org
MIT License
20.97k stars 2.84k forks source link

New project gives compile error #877

Closed ahmetabdi closed 9 years ago

ahmetabdi commented 9 years ago
$ mix phoenix.new test
$ cd test
$ mix phoenix.server
== Compilation error on file web/views/page_view.ex ==
** (CompileError) web/views/page_view.ex:2: module Phoenix.HTML is not loaded and could not be found
    (elixir) expanding macro: Kernel.use/1
    web/views/page_view.ex:2: Test.PageView (module)
    expanding macro: Test.Web.__using__/1
    web/views/page_view.ex:2: Test.PageView (module)
    (elixir) expanding macro: Kernel.use/2
    web/views/page_view.ex:2: Test.PageView (module)

== Compilation error on file web/views/layout_view.ex ==
** (CompileError) web/views/layout_view.ex:2: module Phoenix.HTML is not loaded and could not be found
    (elixir) expanding macro: Kernel.use/1
    web/views/layout_view.ex:2: Test.LayoutView (module)
    expanding macro: Test.Web.__using__/1
    web/views/layout_view.ex:2: Test.LayoutView (module)
    (elixir) expanding macro: Kernel.use/2
    web/views/layout_view.ex:2: Test.LayoutView (module)

== Compilation error on file web/views/error_view.ex ==
** (CompileError) web/views/error_view.ex:2: module Phoenix.HTML is not loaded and could not be found
    (elixir) expanding macro: Kernel.use/1
    web/views/error_view.ex:2: Test.ErrorView (module)
    expanding macro: Test.Web.__using__/1
    web/views/error_view.ex:2: Test.ErrorView (module)
    (elixir) expanding macro: Kernel.use/2
    web/views/error_view.ex:2: Test.ErrorView (module)
josevalim commented 9 years ago

Which Phoenix version?

mix phoenix.new --version
ahmetabdi commented 9 years ago

Phoenix v0.12.0

josevalim commented 9 years ago

Ah, please install latest. This has been fixed!

More info here: http://www.phoenixframework.org/v0.13.0/docs/up-and-running

Thank you!