execjs icon indicating copy to clipboard operation
execjs copied to clipboard

Failed to use "poison" (version 3.1.0) because

Open iSuslov opened this issue 8 years ago • 3 comments

My deps look like this:

  defp deps do
    [cowboy: "~> 1.0",
    plug: "~> 1.0",
    poison: "~> 3.1",
    execjs: "~> 1.1.3"]
  end

when I try deps.get I'm getting

mix deps.get
Running dependency resolution...

Failed to use "poison" (version 3.1.0) because
  execjs (version 1.1.3) requires ~> 1.5
  mix.lock specifies 3.1.0

** (Mix) Hex dependency resolution failed, relax the version requirements of your dependencies or unlock them (by using mix deps.update or mix deps.unlock). If you are unable to resolve the conflicts you can try overriding with {:dependency, "~> 1.0", override: true}

iSuslov avatar Feb 06 '17 09:02 iSuslov

workaround for me was:

{:execjs, git: "https://github.com/devinus/execjs.git", tag: "a1c0af4c3b0afc9d6f176bf82f9c5b9fae3f2a45"}]

in deps

iSuslov avatar Feb 11 '17 00:02 iSuslov

I think the best thing would be to just add override: true in your deps {:poison, "~> 3.1.0", override: true}

yjukaku avatar Jul 20 '17 20:07 yjukaku

check readme.md

https://github.com/trenpixster/addict

1a - Note that mailgun locks Poison to an old 1.4 version, which may cause conflicts (Poison). There's > a fix in place that just hasn't been pushed to hex. Resolve by also adding to your dependencies:

{:mailgun, github: "chrismccord/mailgun", branch: "master", override: true}

KimSien avatar Mar 10 '19 13:03 KimSien