Skip to content

live_motion doesn't compile when added to a new Phoenix project #18

@mrluc

Description

@mrluc

It wants phoenix_html v3.x, when current Phoenix uses v4.

You can of course override: true the phoenix_html dependency, to fix it at v4 and get past that dependency issue.

But then attempting to compile gives:

iex -S mix phx.server
Erlang/OTP 27 [erts-15.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

==> live_motion
Compiling 6 files (.ex)

== Compilation error in file lib/live_motion.ex ==
** (CompileError) lib/live_motion.ex:237: invalid options [default: nil] for slot :inner_block. The supported options are: [:required, :doc, :validate_attrs]
    (phoenix_live_view 1.0.0-rc.7) lib/phoenix_component/declarative.ex:556: Phoenix.Component.Declarative.compile_error!/3
    (phoenix_live_view 1.0.0-rc.7) lib/phoenix_component/declarative.ex:274: Phoenix.Component.Declarative.__slot__!/6
    lib/live_motion.ex:237: (module)
could not compile dependency :live_motion, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile live_motion --force", update it with "mix deps.update live_motion" or clean it with "mix deps.clean live_motion"

In my testing, removing the , default: nil in lib/live_motion.ex:237 fixes that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions