Skip to content

Error: "Cannot redefine property: Shopify" when run Hydrogen on local #2549

@danhloc112

Description

@danhloc112

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 to STORE_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 site localhost:3000 reloaded continuously and I saw an error on console log:
Image

Expected Behavior

n/a

Actual Behavior

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions