Hi, I’m new to Shopify App Development. I created a public app using “shopify_app” gem but when i try to install it on my development store i am facing this error.
NotImplementedError (#access_scopes= must be defined to handle storing access scopes: read_products)
Here is my shopify_app.rb file where i set my scope
ShopifyApp.configure do |config|
config.application_name = “My Shopify App”
config.old_secret = “”
config.scope = ‘read_products’
config.embedded_app = true
config.after_authenticate_job = false
config.api_version = “2022-01”
config.shop_session_repository = ‘Shop’
config.reauth_on_access_scope_changes = true
config.api_key = ENV.fetch(‘SHOPIFY_API_KEY’, ‘’).presence
config.secret = ENV.fetch(‘SHOPIFY_API_SECRET’, ‘’).presence
if defined? Rails::Server
raise(‘Missing SHOPIFY_API_KEY. See https://github.com/Shopify/shopify_app#requirements’) unless config.api_key
raise(‘Missing SHOPIFY_API_SECRET. See https://github.com/Shopify/shopify_app#requirements’) unless config.secret
end
end
