Posted over 4 years ago. Visible to the public.

Heroku compile issue (Elixir Buildpaack) ** (Mix) Expected :version to be a SemVer version

I was having issues with getting a dynamo project compiling on Heroku using the Elixir buildpack and marcelog/jsonex:

Copy
could not compile dependency jsonex, mix compile failed. You can recompile this dependency with `mix deps.c> ** (Mix) Expected :version to be a SemVer version

The issue was in the Jsonex mix.exs: the project version was "2.0". Forking and changing the version to "2.0.0" resolves the issue.

Note that if you change dependencies in a project, you may need also to ensure the the mix.lock file changes too: the safest way is to delete the mix.lock file - mix deps.clean doesn't necessarily do it, if the change is subtle.

Owner of this card:

Avatar
Paul Wilson
Last edit:
over 4 years ago
Posted by Paul Wilson to elixir tips
This website uses cookies to improve usability and analyze traffic.
Accept or learn more