Unable to run hydrogen dev server

Unable to run hydrogen dev server

iammoaz
Visitor
2 0 0

I'm currently working on a Hydrogen storefront project and encountering an issue when trying to run the development server. After running npm run dev, the server starts up, but I'm met with a 

TypeError: Unable to connect to Worker inspector error related to MiniOxygen. 

Screenshot 2024-08-25 at 5.36.12 PM.png
What I've Tried:

  1. Port Conflicts: Checked for any port conflicts and ensured the port is not being used by another process.
  2. Firewall: Verified that the firewall is disabled (state = 0), so it's not blocking the port.
  3. Reinstall Dependencies: Removed and reinstalled node_modules using npm install.
  4. Running on a Different Port: I attempted to run the development server on a different port, but the issue persists.

System Information:

  • Node.js Version: 22.7.0
  • Hydrogen Version: 2024.7.5

I'd like to know if anyone else has encountered this issue or has any suggestions for resolving it. Any insights or recommendations would be greatly appreciated!

Thank you in advance for your help!


Cheers,
Moaz

Replies 2 (2)

Liam
Community Manager
3108 340 873

Hi Iammoaz - I believe this was due to a cloudflare issue last week. Can you confirm if this is still happening?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

iammoaz
Visitor
2 0 0

Hi Liam,
 

Thank you for the update. Unfortunately, I’m still experiencing the same issue. I’ve tried multiple times to uninstall Hydrogen and reinstall it from scratch. During installation, I chose to use sample data from mock.shop and select the default options. However, I’m still unable to get the development server running after completing the installation.

Is there anything else I might be missing? Any additional guidance is appreciated.


Thanks,
Moaz