The asset "shopify_app/request_storage_access.js" is not present in the asset pipeline

Highlighted
Tourist
4 0 2

When I install a custom App on the dev store, I am getting this issue.

 

ActionView::Template::Error (The asset "shopify_app/request_storage_access.js" is not present in the asset pipeline.)

 

Also, I tried to install the App with this link but the error was the same.
http://mydomain.com/app1/login?shop=mydevstore.myshopify.com

 

I have only updated config/initializers/shopify_app.rb file since the app is running on mydomain.com/app1

( FYI, the app is running on AWS EC2 instance with Nginx + Unicorn)

 

ShopifyApp.configure do |config|
config.root_url = '/app1'
...
end
Anyone can help me to fix this issue?
0 Likes
Highlighted
Tourist
4 0 2

This was my mistake. After precompiling assets, this issue is fixed. 

RAILS_ENV=production bundle exec rails assets:precompile

 

1 Like
Highlighted
New Member
2 0 0

I ran this via the CLI, but I am still getting the following error when I try to have a user auth their store with my Shopify app:

I, [2020-09-02T19:04:08.747646 #23609]  INFO -- : [fde0c025-3317-468c-a601-96150cc5eb96] Completed 500 Internal Server Error in 3ms (Allocations: 1388)
F, [2020-09-02T19:04:08.749899 #23609] FATAL -- : [fde0c025-3317-468c-a601-96150cc5eb96]   
[fde0c025-3317-468c-a601-96150cc5eb96] ActionView::Template::Error (The asset "shopify_app/request_storage_access.js" is not present in the asset pipeline.):
[fde0c025-3317-468c-a601-96150cc5eb96]     63:     </div>
[fde0c025-3317-468c-a601-96150cc5eb96]     64:   </div>
[fde0c025-3317-468c-a601-96150cc5eb96]     65: </main>
[fde0c025-3317-468c-a601-96150cc5eb96]     66: <%= javascript_include_tag('shopify_app/request_storage_access', crossorigin: 'anonymous', integrity: true) %>
[fde0c025-3317-468c-a601-96150cc5eb96]     67: </body>
[fde0c025-3317-468c-a601-96150cc5eb96]     68: </html>

 

0 Likes
Highlighted
Shopify Partner
40 0 5

I am also getting this error, despite running the precompile assets command.

0 Likes
Highlighted
New Member
2 0 0

I found a solution that may or may not be specific to our use case. We are running our Ruby on Rails Shopify app on Apache using Passenger. This is my first time working with RoR (app is being developed by a contractor we hired), and so my first time working with Passenger. I found out that I needed to restart passenger in order for app changes to take place.

0 Likes
Highlighted
New Member
2 0 0

@codemicky This work for me on production, one tip to add to the solution. When work with Docker is run the command inside of the container, down the container, and get up again.

0 Likes