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
gems/webpacker-5.4.4/lib/webpacker/manifest.rb:79:in `handle_missing_entry': Webpacker can't find logo-white-notext.png in /home/openfoodnetwork/apps/openfoodnetwork/releases-old/2023-03-21-130502/public/packs/manifest.json. Possible causes:
1. You want to set webpacker.yml value of compile to true for your environment
unless you are using the `webpack -w` or the webpack-dev-server.
2. webpack has not yet re-run to reflect updates.
3. You have misconfigured Webpacker's config/webpacker.yml file.
4. Your webpack configuration is not creating a manifest.
Your manifest contains:
{
}
(ActionView::Template::Error)
from gems/webpacker-5.4.4/lib/webpacker/manifest.rb:49:in `lookup!'
from gems/webpacker-5.4.4/lib/webpacker/helper.rb:193:in `rescue in resolve_path_to_image'
from gems/webpacker-5.4.4/lib/webpacker/helper.rb:189:in `resolve_path_to_image'
from config/initializers/webpack.rb:6:in `image_pack_path'
from app/views/home/_tagline.html.haml:5:in `_app_views_home__tagline_html_haml__2572215756437575251_120080'
Logged on server, directory packs doesn't exist under /home/openfoodnetwork/apps/openfoodnetwork/releases-old/2023-03-21-130502/public
ls: cannot access '/home/openfoodnetwork/apps/openfoodnetwork/releases-old/2023-03-21-130502/public/packs': No such file or directory
I don't really understand why this was necessary. It sounds like this issue you mentioned: rails/webpacker#1212, but that refers to a change made a long time ago in webpacker v3.
Another possible cause is that the yarn installation on staging servers was changed on 15th May (openfoodfoundation/ofn-install#865 (comment)). Yarn is now installed with Nodenv, and might have been a slightly different version.
In any case, I'm confused. I'd like to see dev-related dependencies moved out of production if they're not necessary.
But I'm glad you fixed it for now 👍
Originally posted by @jibees in #10568 (comment)
Context:
master
: https://semaphoreci.com/openfoodfoundation/openfoodnetwork-2/servers/fr-staging/deploys/969/
:packs
doesn't exist under/home/openfoodnetwork/apps/openfoodnetwork/releases-old/2023-03-21-130502/public
rails assets:precompile
does not create/public/packs
directory rails/webpacker#1759 and/or yarn_install task is not installing devDependencies rails/webpacker#1212The text was updated successfully, but these errors were encountered: