-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpacker can't find subdir/image.png in manifest.json #44
Comments
first I thought I was doing something wrong, but this just seems like a big source of incompatibility between webpacker and shakapacker webpack-asset-manifest says: will generate a JSON file that matches the original filename with the hashed version so maybe thats it? instead of file-path->hashed-version it generates only file-name->hashed version? there is a difference to how to manifest used to look like with webpack5: now with shakapacker: |
Looks like this was open issue with rails/webpacker. For more see rails/webpacker#2956. Likely changed in rails/webpacker#2802 Need to dig into this and figure out what was the reason for this change. |
@honzasterba Can you try out the changes in #47 and see if that fixes the issue for you? |
will do! |
I have checked and I can verify that #47 fixes the issue |
Thanks! Need to give it few me spins but hopefully we can merge and release soon! |
Awesome work guys! |
I'll release 6.1.0 on Friday. |
Ruby version: 3.03
Rails version: 7.0.1
Webpacker version: 6.0.2 (same for js and gem)
Expected behavior:
image_pack_tag "subdir/image.png"
in viewActual behavior:
Error is raised: Webpacker can't find subdir/image.png in .../manifest.json
Small, reproducible repo:
https://github.com/honzasterba/packer-test
The text was updated successfully, but these errors were encountered: