Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rails test results in sprockets error #86

Open
morgant opened this issue Oct 31, 2019 · 1 comment
Open

rails test results in sprockets error #86

morgant opened this issue Oct 31, 2019 · 1 comment

Comments

@morgant
Copy link

morgant commented Oct 31, 2019

Note: For general questions and feature requests please leave a message
on Gitter: https://gitter.im/comfy/comfortable-mexican-sofa

Expected behavior

Running rails test or bundle exec rails test to run tests.

Actual behavior

A sprockets error is generated:

/Users/someuser/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/railtie.rb:105:in `block in <class:Railtie>': 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

Steps to reproduce

  1. Clone the repository and cd into it
  2. Run gem install bundler
  3. Run bundle install
  4. Run bundle exec rails test

System configuration

Rails version: 5.2.3

CMS version: n/a

Ruby version: 2.5.1p57

@morgant
Copy link
Author

morgant commented Oct 31, 2019

This is caused by changes in sprockets 4, so an app/assets/config/manifest.js file is required (see sprockets/UPGRADING.md). Creating an empty manifest.js solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant