-
Notifications
You must be signed in to change notification settings - Fork 125
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
[Bug]: JS & CSS assets return 404 when developing locally #2094
Comments
Same here. Operating System Shopify CLI version Shell Node version |
Same here. OS Shopify CLI Shell Node I have already tried uninstalling, reinstalling, and downgrading to 3.45.0 and have had the same results. |
cc @Shopify/theme-code-tools |
Same issue here on Mac 13.4. None of the css/js is loading in local. #2084 (comment) - this might be of help, not tested yet. |
Same issue on Mac 13.4 |
same issue on the Win 11 home 22H2 |
I'm encountering a similar problem, but it's only affecting one of the stores I'm working on. This bug was actually reported over a month ago, and unfortunately, it has prevented me from making progress on implementing the store's new features. you can see the bug report here: #1859 I'm using
|
Has anyone been able to fix this? In the meantime, I have been using the preview URL and reloading the page like it is in the early 2000s again. For me, it has not been an issue in production but has slowed development considerably. I am happy to help in any way I can. I appreciate all the work Shopify does for the community. If it helps, I had to run Thanks again. |
probably related: https://shopify.dev/changelog/changes-to-merchant-asset-urls |
Same issue here. Had to abandon 3.0 for now since we need to get things done. |
Same issue here, only impacting one store. CLI rollback as failed to resolve the issue. Client is getting irritated. |
hi everyone! thank you for letting us know how much this issue has been impacting you. we have a WIP fix here so please stay tuned, we're looking to ship it ASAP |
Thank you, everyone, for reporting this and sharing those details. The issue has been resolved through #2105 and will be included in the next release of the CLI. |
CLI version 3.46.3 has been released, including the fix. Thanks @karreiro for making it happen. Folks, please update to the latest and let us know if you continue to encounter any issues. Thanks as always for your input! |
Seems like the issue is still happening on my end - 3.46.3. I also had to update Ruby on Ventura 13.4. |
I updated to 3.46.3, and it is working! Thank you. I am also on Ventura 13.4. After you update to 3.46.3 you will need to restart your terminal session, make sure that when you run Thanks again for quickly fixing this. |
@nzajt out of interest, are you using it on a non passworded store? Reason I ask is I've been testing on a development store that requires a password, so unsure if that's related to my issue. I've restarted terminal and can confirm 3.46.3, but none of the js/css is loading locally. |
Same situation here. This appears to have not fixed my issue. Running on Windows 11 updated Shopify CLI version. Live store. |
Hey folks, For everyone still experiencing this issue, could you please follow the steps below to help us better understand the scenario you're facing:
With that information we can gain more context regarding the issue you're facing and fix it. Thank you! |
You need to update the Shopify CLI version |
Please confirm that you have:
In which of these areas are you experiencing a problem?
Theme
Expected behavior
After running
shopify theme dev --store my-store.myshopify.com
, I would expect my local test link (http://127.0.0.1:9292/) to load my CSS and JS assets.Actual behavior
The page tries to load my CSS file via the URL
http://my-store.myshopify.com/assets/app.min.css?v=154673635596667609071685626011
. That URL returns a 307 redirect tohttps://my-store.myshopify.com/assets/app.min.css?v=154673635596667609071685966179
(mind the HTTPS), which in turn returns a 404 status.If I update the CSS or JS assets, I see the CLI picks up the modification and syncs the updated file to the Shopify servers.
When I run shopify theme push --store my-store.myshopify.com and then request the preview link, all assets are loaded perfectly.
Verbose output
Reproduction steps
shopify theme dev --store my-store.myshopify.com
If necessary, I have recorded my screen and I can share if handy.
Operating System
MacOS Ventura 13.3.1 (a)
Shopify CLI version (check your project's
package.json
if you're not sure)3.46.2
Shell
iTerm2
Node version (run
node -v
if you're not sure)v14.18.3
What language and version are you using in your application?
No response
The text was updated successfully, but these errors were encountered: