Closed ineptian closed 3 years ago
This is a Shopify CLI bug. Currently, all binary file uploads are broken (images, fonts etc). Here's a comment from me on a similar issue in the Shopify CLI Repo
Thanks for the reply on both issues. So the workaround for now is to:
1) Upload file manually in shopify.
2) Run shopify theme pull
with the asset also in my local theme.
This is too risky if you use a Shopify CLI command which pushes all files back to remote then all files will be broken again.
<img src="https://cdn.shopify.com/...">
instead of e.g. {{ 'image.static.jpg' | asset_url }}
for nowLooks like there is a fix for this finally, just waiting for it to get pulled into the main branch.
This issue should now be fixed with the latest Shopify CLI 2.3.0 release.
Operating system
Windows 10
Node.js version
15.5.0
Shopify CLI version
2.1.0
Browsers
Chrome
Version
4 (Current)
Modifications
No response
Details
Attached screenshot of error in chrome console as well as asset url on shopify side.
Notice