Syntax error with egd install

I am doing Udemy course and busy with EGD. I followed various google pages and followed instructions.

In the mix.exs file I needed to add:

  defp deps do
    [
{:identicon, "~> 0.1.0"}
{:egd, github: "erlang/egd"}
         ]
  end

When I run iex -S mix I get the following error on line 27 (which is {:egd, github: "erlang/egd"})

** (SyntaxError) mix.exs:27:1: syntax error before: '{'

Could someone kindly point out what I am doing wrong.

Kind regards,
Dmitri

Hi there, and welcome!

You are missing a comma between the two elements in the list.
Try this instead:

  defp deps do
    [
      {:identicon, "~> 0.1.0"}, 
      {:egd, github: "erlang/egd"}
    ]
  end

2 Likes

Missing a comma after {:identicon, "~> 0.1.0"}

1 Like

Thank you so much. That solved it. Such a small thing.

Highly appreciated.

Regards,
Dmitri