Closed Szetty closed 1 year ago
Started to debug more, and found that the problem is here:
Basically this.main = view
is not called for some reason. Although checking the rootEl I can see the attribute:
What is your LiveView version? I am using 0.18.x and it definitely works here. You may need to update LiveView or keep using 3.2 until you can do so. :)
Found the problem, it is related to this commit from what I understand: https://github.com/phoenixframework/phoenix_html/commit/4904ed1c5f0805c67d1e4ba11eb8603beaaf5745
Old version:
New version:
What is your LiveView version? I am using 0.18.x and it definitely works here. You may need to update LiveView or keep using 3.2 until you can do so. :)
Thank you @josevalim, found the phoenix_live_view commit fixing this : https://github.com/phoenixframework/phoenix_live_view/commit/604d0f740df7d386bdeb055d6194494e0ed5e558
In conclusion in order to run phoenix_html > 3.3.0
you need phoenix_live_view > 0.18.4
.
Had a similar issue. Updating the deps wasn't enough to fix it, but after running these commands it worked fine:
cd assets
rm -rf node_modules
npm i
cd ../
rm -rf _build
mix compile
mix phx.server
Basically since we changed to this version (3.3.0) our push_patch has stopped working on JS side.
We are seeing this error on version 3.3.0:
And inspecting the value, it is indeed null:
On version 3.2.0 we have this for the same value: