Giter Site home page Giter Site logo

Comments (5)

trenpixster avatar trenpixster commented on September 27, 2024

Hey @dianjin! that's interesting, the example app has the same model and it's working correctly. What ecto version are you running?

from addict.

dianjin avatar dianjin commented on September 27, 2024

My deps:

defp deps do
    [{:phoenix, "~> 1.2"},
     {:phoenix_ecto, "~> 3.0"},
     {:absinthe_plug, "~> 1.1"},
     {:postgrex, ">= 0.0.0"},
     {:timex, ">= 0.0.0"},
     {:phoenix_html, "~> 2.3"},
     {:phoenix_live_reload, "~> 1.0", only: :dev},
     {:ecto, "~> 1.0.0", override: true},
     {:cowboy, "~> 1.0"},
     {:addict, "~> 0.3"}
   ]
  end

I added the "override:true" to ecto since when I first added the addict dependency, mix deps.get failed because of conflicting inter-dependencies or something of that nature - a post on StackOverflow suggested to add the "override: true" which then enabled me to run mix deps.get with addict.

from addict.

trenpixster avatar trenpixster commented on September 27, 2024

Ohh I see. So, Addict now depends on Ecto 2.0. Do you have any hard dependency on Ecto 1.0? Please check #98 for more information on it.

An alternative would be to use version 0.2.5 of Addict, but you'll be missing out new features and enhancements that will appear in the future.

from addict.

dianjin avatar dianjin commented on September 27, 2024

Okay, I changed my deps to ecto version 2.0.0 and it worked. Thanks for the assistance! 😃

from addict.

trenpixster avatar trenpixster commented on September 27, 2024

Glad it fixed it 😄

from addict.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.