-
Notifications
You must be signed in to change notification settings - Fork 288
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
Error: "Cannot redefine property: Shopify" when run Hydrogen on local #2549
Comments
Updated: It does not happen on version |
In your code, do you have I am unable to reproduce this error from a fresh install of Also, it should not reload continuously. The error you see might be the side effect of reloading continuously. |
No, I do not. |
I can't reproduce this at all. Please provide detail instruction to reproduce this error, including your npm version, nodejs version, operating system you are using |
I'm getting the same issue on the localhost as well. But the issue "disappears" if I remove the {
shopId: "gid://shopify/Shop/xxxxxxxxx",
acceptedLanguage: "EN",
currency: "USD",
hydrogenSubchannelId: "xxxxxxxxx"
}
I tried preview deployment on the oxygen and it does not have such an issue, only localhost has it. So something inside of the <Analytics.Provider/> is not caught properly on the localhost. |
What is the location of your example repository?
No response
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
2024.7.7
What version of Remix are you using?
No response
Steps to Reproduce
I added the
PUBLIC_CHECKOUT_DOMAIN
equal toSTORE_NAME.myshopify.com
(by following this post from Shopify Community: https://community.shopify.com/c/hydrogen-headless-and-storefront/issues-setting-up-hydrogen-locally/m-p/2615078)and run the command
npm run dev
. The sitelocalhost:3000
reloaded continuously and I saw an error on console log:Expected Behavior
n/a
Actual Behavior
n/a
The text was updated successfully, but these errors were encountered: