Shopify / hydrogen-v1

React-based framework for building dynamic, Shopify-powered custom storefronts.

Home Page:https://shopify.github.io/hydrogen-v1/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Tutorial instructions do not work w Yarn 3

cyberwombat opened this issue · comments

commented

Describe the bug
I am following instructions here https://shopify.dev/custom-storefronts/hydrogen/getting-started/tutorial/begin

To Reproduce
Using Yarn 3.2.4
yarn create @shopify/hydrogen --template hello-world --ts
It asks me for the project name, seems to complete correctly but the end result is a completely empty directory. I have searched all folders on my laptop for one with project name but nothing seems to be created anywhere.

I then added a .yarnrc.yml file in project directory with:

nodeLinker: node-modules

But same result (or lack of).

Expected behavior
I would expect some sample code to be in the folder so that I can do the next step cd <app-directory>.

Installing w npm works as expected.

  • Hydrogen version: N/A
  • Node version: 18
  • Device details: MacOS Ventura 13.2
commented

Additionally after installing w npm it will still not work unless nodeLinker: node-modules in .yarnrc.yml.
And... the tsconfig is invalid - vite/client is not correct for yarn. I changed it to vite and errors went away - not sure if correct though.

commented

And am getting GitHub workflow errors in the mail

[Shopify/hydrogen] Add issues to project workflow run: Add issues to project: All jobs have failed