I’m trying to develop my own custom Shopify store from scratch (for myself, not clients). I want full control over the theme: building custom sections, pages, everything based on my designs.
What I tried: Installed Shopify CLI (versions 3.49.0, 3.47.0) both on Windows (Git Bash, CMD) and inside WSL Ubuntu.
Installed Node.js v20 properly inside both systems.
Installed Ruby when necessary.
Installed using npm install -g @shopify/cli@3.47.0 @shopify/theme
.
Every time I try commands like:
shopify login --store my-store-name.myshopify.com
or
shopify theme pull --store my-store-name.myshopify.com --password=shpat_XXXXX
I get the same React error:
Warning: Invalid hook call. Hooks can only be called inside the body of a function component. ERROR Cannot read properties of null (reading ‘useState’) This happens in Git Bash, WSL, CMD — everywhere. CLI is completely broken because Shopify switched to React-based CLI components, and they crash at runtime.
Downgraded Shopify CLI to 3.47.0 (still broken).
Tried using an Admin API token and theme pull directly (still broken).
Even Theme commands (theme pull, theme push) crash.
Tried setting up WSL fresh, and installing only minimal clean Node/npm.
Installed the latest versions of Windows, WSL, and Ubuntu.
I want to code a full Shopify store from scratch (custom homepage, custom sections like Hero, Product Features) just like a normal web development project.