Receiving this error when upgrading to Phoenix 1.6: assign @view_module not available in template.

I am receiving this error after moving from 1.5 to 1.6:

ArgumentError at GET /
assign @view_module not available in template.
Please make sure all proper assigns have been set. If this
is a child template, ensure assigns are given explicitly by
the parent template as they are not automatically forwarded.

I haven’t changed anything else, and I cannot figure out from others receiving this error what happened.

Thank you!

1 Like

I think this shouldn’t have worked in 1.5 as well. Look at phx-1.5-upgrade.md · GitHub

1 Like

I’m currently on 1.5 and it is working

Maybe @view_module was soft-deprecated in 1.5 and in 1.6 it really stopped working.

See the link I posted above how to migrate.

1 Like