phoenixframework / phoenix_html

Building blocks for working with HTML in Phoenix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cant install 4.0.0

atomkirk opened this issue · comments

I might be doing something wrong or this is unrelated, but I haven't see it before, only with this package.

I change

{:phoenix_html, "~> 3.3.2"},

to

{:phoenix_html, "~> 4.0.0"},

and do

mix deps.unlock phoenix_html
mix deps.get

and I get

Resolving Hex dependencies...
Resolution completed in 0.021s
Because your app depends on phoenix_html empty which doesn't match any versions, version solving failed.
** (Mix) Hex dependency resolution failed

Any idea whats up?

This is a Hex bug: hexpm/hex#972

It means you have a path or a git dependency that conflicts with phoenix_html. If you address that, you should be good to go!

PS: hex has a fix for it, but it was not released yet because it introduced a regression :)

What happened to hidden_inputs_for? my deps depended on it.

@atomkirk you can add this to your markup instead:

    <input :for={{name, value} <- form.hidden} type="hidden" name={name} value={value} />