@shopify/admin-ui-extensions-react npm unable to resolve dependencies react 18.2.0

Here’s what you need to do:

  1. Issue: The problem arises because you’re using react@18.2.0, while the Shopify package relies on an older version.

  2. Solution: To resolve this, you can utilize the legacy-peer-deps option.

  3. Steps:

    • Create a file named .npmrc in the root directory of your project (where the package.json file is located).

    • Inside the .npmrc file, add the following line:

      legacy-peer-deps=true
      

    This setting will help address the compatibility issue between the different package versions. :blush:

1 Like