I'm following the Conduit book, and I get this error.
(Mix) Could not start application eventstore: EventStore.Application.start(:normal, []) returned an error: an exception was raised:
conduit_1 | (UndefinedFunctionError) function EventStore.MonitoredServer.child_spec/1 is undefined or private
My mix.exs
defmodule Conduit.Mixfile do
use Mix.Project
def project do
[
app: :conduit,
version: "0.0.1",
elixir: "~> 1.4",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: deps()
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Conduit.Application, []},
extra_applications: [:logger, :runtime_tools, :eventstore]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:commanded, "~> 0.16.0", override: true},
{:commanded_eventstore_adapter, "~> 0.4.0"},
{:eventstore, "~> 0.15.1"},
{:phoenix, "~> 1.3.4"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_ecto, "~> 3.2"},
{:postgrex, ">= 0.0.0"},
{:gettext, "~> 0.11"},
{:cowboy, "~> 1.0"}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
"event_store.reset": ["event_store.drop", "event_store.create", "event_store.init"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
"test": ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
en
I can't find this error anywhere in the web. Any insights?
UDPDATE
Comparing with this' repo mix.exs, I have removed the {:eventstore, "~> 0.15.1"}, dependency, and still the same error appears.
I'm following the Conduit book, and I get this error.
(Mix) Could not start application eventstore: EventStore.Application.start(:normal, []) returned an error: an exception was raised: conduit_1 | (UndefinedFunctionError) function EventStore.MonitoredServer.child_spec/1 is undefined or private
My
mix.exs
I can't find this error anywhere in the web. Any insights?
UDPDATE Comparing with this' repo mix.exs, I have removed the
{:eventstore, "~> 0.15.1"},
dependency, and still the same error appears.