We are running Rails 6.1 with Webpacker. When updating to the latest version 1.5.1 we get an error starting the rails server. Version 1.4.4 where we are upgrading from doesn't have the issue. When adding the file manifest.js it is starting fine but then we get unexpected error when loading pages. Seems like there is a depency for the file to be there.
Expected to find a manifest file in `app/assets/config/manifest.js` (Sprockets::Railtie::ManifestNeededError)
But did not, please create this file and use it to link any assets that need
to be rendered by your app:
Example:
//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .css
and restart your server
For more information see: https://github.com/rails/sprockets/blob/070fc01947c111d35bb4c836e9bb71962a8e0595/UPGRADING.md#manifestjs