Zeitwerk

Posted by Jake Pople

about 1 month ago

2

heroku

Error message:

raise Zeitwerk::NameError.new(msg, cref.cname)


/app/vendor/bundle/ruby/3.3.0/gems/zeitwerk-2.7.2/lib/zeitwerk/loader/callbacks.rb:32:in `on_file_autoloaded': expected file /app/app/service/articles_api_service.rb to define constant ArticlesApiService, but didn't (Zeitwerk::NameError)
If when pushing to Heroku you come across an error like above, it most likely means there is a service that has been created with a spelling mistake. Even if the file isn't being used Heroku won't like that fact that the file name and the class don't match.