Closed lukszy closed 3 weeks ago
By default, Hydrogen is setup to run on Oxygen. Oxygen uses a worker runtime, not NodeJS. This means you cannot use NodeJS APIs. If you'd like to deploy to Node, please follow the express example, which does not use our CLI.
What is the location of your example repository?
No response
Which package or tool is having this issue?
Oxygen
What version of that package or tool are you using?
3.0.0
What version of Remix are you using?
2.8.0
Steps to Reproduce
npm create @shopify/hydrogen@latest -- --quickstart
import crypto from 'node:crypto';
in_index.jsx
const hash = crypto.createHmac('sha256', 'secret');
npm run dev
Node v20.12.2 npm 10.5.0 OS MacOS Sonoma 14.4.1
Expected Behavior
Should be able to use node packages like crypto package
Actual Behavior