After following each step in the webpacker upgrading section, an upgrade from 4.2.2 to 5.0.1, is causing yarn install to no longer be invoked during rails assets:precompile. This is causing front-end packages sourced from our package.json file to not be found during the asset compilation process.
This is highlighted when CI runs rails assets:precompile. Previously assets:precompile would run yarn install before compiling our application.js file. I've added the --trace flag and it runs as if it skips yarn install.
** Invoke yarn:install (first_time)
** Execute yarn:install
** Execute assets:precompile
rails aborted!
Sprockets::FileNotFound: couldn't find file 'moment' with type 'application/javascript'
The same CI run with the older webpack version displays the yarn install output as expected. Has anyone run into this same issue when bumping to 5.x?