Live view hex package and npm package are out of sync. Is this normal?

Hey there, sorry for the possibly dumb question, just something I’m not sure about. The live view deps aren’t at the same version number and I’m under the impression that they should always be in sync in your codebase.

JS dep is at 1.0.15 phoenix_live_view - npm
Ex dep is at 1.0.14 phoenix_live_view | Hex

Is it ok to install these two different versions or should they always be in sync?

1 Like

they are now:

@FlyingNoodle thanks! Do you know, should they always be in sync or is it ok to let them drift by a minor version or two?

The default phoenix boilerplate uses the js from the deps/phoenix* folders – so things are always in sync. If you’re pulling from npm then you want to make sure the versions are in sync. Things might still work, but could very much not work as well.

2 Likes

Something must have gone wrong publishing that version to hex - maybe I just forgot to run the command. For completeness, it is pushed now!

1 Like