Closed shahryarjb closed 5 years ago
Do you have plug
and guardian
in your dependencies?
@yordis it's my elixir project under umbrella
defp deps do
[
{:ecto, "3.0.7"}, #1
{:ecto_sql, "~> 3.0"}, #2
{:postgrex, ">= 0.0.0"}, #3
{:comeonin, "~> 5.0"}, #4
{:bcrypt_elixir, "~> 2.0"}, #5
{:scrivener_ecto, "~> 2.0"}, #6
{:guardian, "~> 1.2"}, #7
{:httpoison, "~> 1.5"}, #8
{:jose, "~> 1.9"}, #9
{:plug, "~> 1.7"}
]
Have I mistaken anything?
Could you post the stack trace of the error, I can't see anything wrong
@yordis I didn't understand what you told me, sorry, but you need the error?
see the pic plz
At this point, are you sure you added the dependency to the correct package?
I am not sure what is the issue other than having issues with the dependencies.
It's umbrella project issue again,
I delete my build and delete all of sup project deps
and this was fixed. after 8 hours :(
Thank you @yordis
@shahryarjb your dependencies can't be under the umbrella but the individual packages under the umbrella, which may be what you called an issue since it is not well documented (people keep making the same mistakes)
I am happy that you figured it out
this issue has reoccurred again, it is related to docker in my case, as i can compile and everything works fine if i dont use docker
Hello, I have updated my project to new Guardian, but I have a
lib/auth_service/guardian.ex:2: module Guardian.Plug is not loaded and could not be found
error, it can't be able to load Guardian,my file:
I tested
mix deps.get && mix deps.compile
before this error, but it was not fixed.my project is umbrella, elixir v1.8.0 and
{:guardian, "~> 1.2"}
my config:
How can I fix this ?
Thanks