Sprockets::CircularDependencyError application.js has already been required

In my application, I receive a Sprockets::CircularDependencyError application.js has already been required. This affects every page in my application because none of the JS loads. Note – this error occurred after a fairly complex merge.

My assumption (please correct me if I’m wrong) is that this error occurs because two different files require application.js. If so, in which files should I look to debug this error? How could I test my application to determine what files are already requiring application.js?

  • Managing website with git on a existing website
  • git says everything-up-to-date when pushing changes to a remote branch
  • Automatically open a pull request on github by command line
  • Git: use revert or checkout to undo pushed changes?
  • Combine git log --stat with --name-status?
  • jspm install can't download packages from npm and github due to proxy settings
  • Thank you very much for any help. I’d be more than happy to supply any pertinent information.

  • When would one need git-rebase?
  • what is the difference between tag and branch with git?
  • Change SSH password in Git
  • Jenkins, Git Hub Pull Request Builder is 1 commit behind
  • Update working on target repo when changes are pushed to it
  • Which Distributed Source Control System has the best integration with Windows & Visual Studio?
  • One Solution collect form web for “Sprockets::CircularDependencyError application.js has already been required”

    “this error occurred after a fairly complex merge. “

    I’m sure the conflict would surely be in the application.js file too.. After the merge you might not have removed the extra application.js.* file your version control creates for you, where both of them would be having line of require tree or something.. i.e. both requiring each other thus circular dependency. Make sure there is no such extra file in that folder…

    Git Baby is a git and github fan, let's start git clone.