I am trying to update a Rails 3 app to Rails 6 and I have problems with the now default webpacker since my Javascript functions are not accessible.
I get: Refe
Refe
Replace the code in your custom java Script file from
function function_name() {// body //}
to
window.function_name = function() {// body //}