You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start Rails 6 application with eager_load set to true
Logs
If applicable, enable the logs as described in the README, and paste the relevant portion here.
/usr/local/bundle/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in `const_get’: uninitialized constant ShopifyAPI::AdminVersions (NameError)
from /usr/local/bundle/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in `cget’
from /usr/local/bundle/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in `cget’
from /usr/local/bundle/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:237:in `block (2 levels) in eager_load’
from /usr/local/bundle/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:237:in `block (2 levels) in eager_load’
Specifications
shopify_api version: Main Branch
The text was updated successfully, but these errors were encountered:
+1
I'm getting the same error on Rails 7.
It breaks on rails console as well.
❯ rails c
Loading development environment (Rails 7.0.2.3)
[1] pry(main)> ShopifyAPI::AdminVersions
NameError: uninitialized constant ShopifyAPI::AdminVersions
Did you mean? Administrate
from (pry):1:in `__pry__'
[2] pry(main)>
Issue summary
Application fails to start with eager loading in Rails 6.
Expected behavior
The library loads successfully when the application starts.
Actual behavior
The library fails to load when rails 6 eager loading if utilized:
Steps to reproduce the problem
eager_load
set totrue
Logs
If applicable, enable the logs as described in the README, and paste the relevant portion here.
Specifications
shopify_api
version: Main BranchThe text was updated successfully, but these errors were encountered: