Comments (18)
Can you try with "@shopify/cli-hydrogen": "8.1.1"
and see if the dev command works on Windows?
from hydrogen.
Also seeing this issue
from hydrogen.
this broken for Windows preventing upgrade to lates release.
from hydrogen.
Getting the same issue while trying to run the hydrogen app
any update on solution
from hydrogen.
I'm getting the same error on a Windows device as well
from hydrogen.
Can confirm this behavior on the latest version as well. Seems to be Windows specific.
For the time being I'm running this on WSL and the error isn't present, but the node performance there is quite bad so I'd like to be able to run this on Windows as well.
from hydrogen.
Can someone help me resolve the same issue?
from hydrogen.
Use WSL
from hydrogen.
Okay thank you, I've set up the WSL but now I'm getting the following error:
Node version: 20.2.0
NPM version: 10.8.1
from hydrogen.
I believe this is related to the pull request at #2087. Just try downgrading @shopify/cli-hydrogen to 8.0.4, and it work.
@frandiox, @isaacroldan can you guys take a look?
from hydrogen.
I've encountered the same issue, even after downgrading to @shopify/cli-hydrogen 8.0.4.
Do you have any other solutions to fix the issue?
from hydrogen.
@swappaa I think you should run npm run dev
instead of h2 dev
from hydrogen.
Thank you so much, @paul-phan. The h2 dev is working. I just installed it using npm i @shopify/[email protected] instead of manually modifying the version of @shopify/cli-hydrogen in package.json.
from hydrogen.
For me, it was the permission issue the following command did the trick (for those who are facing the same issue)
chmod -R [desired permissions] [target folder]
from hydrogen.
@frandiox I tried here and confirm that 8.1.1
solves the problem in Windows 11.
from hydrogen.
@rafael-franca can you please write the steps here?
Thank you!
from hydrogen.
@farhankhangit
in package.json on line 20, you can change:
"@shopify/cli-hydrogen": "^8.1.1",
to
"@shopify/cli-hydrogen": "8.1.1",
then run npm install
and npm run dev
works just fine.
This fixed the problem for me on Windows 11 as well.
from hydrogen.
Thanks everyone for reporting and testing the fix. Closing this now ✅
from hydrogen.
Related Issues (20)
- Production deployments in branches other than `main` not possible anymore HOT 8
- Invalid or vanity URL's with a single path segment do not redirect to 404 or to a redirect set in Shopify HOT 2
- Can't remove cart attribute using cartAttributesUpdate action from useCart() hook HOT 1
- Hydration errors when using Script component with getSeoMeta HOT 8
- Modelviewer throws SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data HOT 2
- Make sure Hydrogen 400 errors on bad requests
- Canonical link from `getSeoMeta` is not updated on path change HOT 1
- Customer Account API - prompt none parameter breaks auth flow HOT 2
- Preferences missing from CartBuyerIdentityInput type HOT 3
- Unmounting CartForm cancels fetch HOT 3
- Tailwind Alpha not working on new projects HOT 1
- cli-hydrogen overwrites vite customLogger
- Pagination not consistent on refresh of page HOT 1
- Source map for Customer Privacy API is outdated
- Issue with Tracking Pixel Events Using Shopify Documentation HOT 4
- Improve the image component HOT 1
- Money component memoization broken
- Unable to create linked Hydrogen repo HOT 4
- href attribute mismatch using the Pagination Component HOT 7
- VariantSelector component: nonexistent variants for product options are showing up as isAvailable: true HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hydrogen.