Have some problems with boilerplate code generated with phx.new constructor.
First, in following line in endpoint.ex
json_decoder: Phoenix.json_library() Compiler doesn’t understand .json_library(), says function is undefined or private. I checked boilerplate, generated with phoenix.new constructor, instead of .json_library() Poison is set as a json_decoder there. I switched to Poison in phx.new as well and that part compiles fine.
Then, when I’m starting the server with phx.server, seems it compiles as well, but when I’m requesting a page, it crashes. Logs say
Router.Helpers.static_push/2 is undefined or private
I’m running Elixir 1.6.4 with Erlang/OTP 19 on Windows 8. Environment was set up according to instructions in book “Programming Phoenix”. Erlang/OTP was installed with a package from Erlang Solutions.
Any ideas why phx.new constructor is out of sync from the rest of development environment? Or maybe there’s some other issue I’m not aware of? Anyway, thanks in advance, guys