Shopify / hydrogen-demo-store

This template contains a full-featured setup of components, queries and tooling to get started with Hydrogen. It is deployed to https://hydrogen.shop
117 stars 50 forks source link

Error on project creation #32

Closed Alain1405 closed 6 months ago

Alain1405 commented 6 months ago

The command provided in the readme leads to an error. If I run npm create @shopify/hydrogen@latest -- --template demo-store I get:

  ERROR  Cannot read properties of null (reading 'useCallback')

 /Users/alainscialoja/.npm/_npx/e1eac94ad41cc36f/node_modules/@shopify/cli-kit/node_modules/react/cjs/react.development.js:1646:21

 1643: }
 1644: function useCallback(callback, deps) {
 1645:   var dispatcher = resolveDispatcher();
 1646:   return dispatcher.useCallback(callback, deps);
 1647: }
 1648: function useMemo(create, deps) {
 1649:   var dispatcher = resolveDispatcher();

Here's a screenshot:

Screenshot 2024-04-28 at 13 09 49