Phoenix LiveView: file upload error on production


I implemented a file upload using Phoenix Live View. Everything works fine locally, but on production mode, there is an error in console: unknown hook found for “Phoenix.LiveFileUpload”.

It appears when I only pull up the page and not interacting with the file upload button.

Versions: elixir - 1.11.3, otp - 23.2, phoenix_live_view - 0.15.4.

Thanks for the help

Sounds like you are running an old version of the phoenix_live_view.js client. Make Sure your node deps/build is up to date in prod