Rails; Autoload issue after installing Sidekiq: ArgumentError (A copy of Api::V1 has been removed from the module tree but is still active!):
问题 I have a rails (v5.1) project in development, in which I recently installed Sidekiq. I now have an autoload issue, getting the subject argument error. I have done a fair bit of research which seem to boil down to this being a problem of "trying to access an automatically reloaded class (in app directory) from one that is not automatically reloaded (in lib directory)," and that when the code is reloaded, Rails throws an error since the module from which the constant search is starting shouldn