any_login icon indicating copy to clipboard operation
any_login copied to clipboard

Manifest.js warning when starting Rails server

Open samuelvaneck opened this issue 1 year ago • 1 comments

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.

Error in the console

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

samuelvaneck avatar Sep 02 '22 14:09 samuelvaneck

@samuelvaneck can you please fork and clone this repo, and just put an empty file in the appropriate folder and use it locally? I hope it can fix, and you can create a PR

to connect gem locally:

gem 'any_login', path: '../any_login'

igorkasyanchuk avatar Sep 03 '22 08:09 igorkasyanchuk