kurmetaubanov

kurmetaubanov

Couldn't install phx_gen_auth on phoenix 1.6.2

Hello everyone,

This is a strange situation right here.
I installed phx.new app --live, ecto.create, all default phx.new 1.6.2 dependencies.
I want to install phx_gen_auth, added {:phx_gen_auth, “~> 0.7”, only: [:dev], runtime: false} to mix.exs, but get an error:

mix deps.get
Resolving Hex dependencies…

Failed to use “phoenix” (version 1.6.2) because
phoenix_live_reload (versions 1.2.0 to 1.3.3) requires ~> 1.4
phoenix_live_view (versions 0.16.0 to 0.16.4) requires ~> 1.5.9 or ~> 1.6.0
phx_gen_auth (version 0.7.0) requires ~> 1.5.2
mix.exs specifies ~> 1.6.2

Well phoenix is already 1.6.2, why do I get this error?

Most Liked

gus

gus

Nerves Core Team

Hey there,

The good news is that the Phoenix auth generators were merged into Phoenix 1.6. So, you can just run the phx.gen.auth commands without installing any extra deps. I assume that trying to install the separate package intentionally throws an error for versions above 1.5.

Hope this helps!
Gus

kurmetaubanov

kurmetaubanov

wow, thanks! I will immediately give it a try

upd: it works, thanks!

gus

gus

Nerves Core Team

Check out the changelog on GitHub. Big kudos to the Phoenix team for providing very clear details on the updates and changes for each release - I’m sure that is a monumental task in addition to maintaining the entire framework.

It is very comprehensive, but it is definitely easy to miss.

https://github.com/phoenixframework/phoenix/blob/master/CHANGELOG.md

Where Next?

Popular in Questions Top

beno
I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> somethi...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call t...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
earth10
Hi, I’m just starting to build a side-project with Elixir and Phoenix and doing some basic test with Elixir alone. What strikes me is th...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54250 245
New
jaysoifer
Is there a way to rollback a specific migration and only that one (“skipping” all the other ones)? Would mix ecto.rollback -v 200809061...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New

We're in Beta

About us Mission Statement