[BUG] Incompatible Node versions in Hydrogen and CLI
We have engines set to Node 14 in Hydrogen itself, but mini-oxygen requires 16.7. This error is thrown when building with Node 14 (this is from Vercel build logs):
error @shopify/[email protected]: The engine "node" is incompatible with this module. Expected version ">16.7.0". Got "14.19.0"
mini-oxygen is a dependency of the new CLI and it's installed even if we are only targeting Node environments.
Should we change Hydrogen to only be Node 16 and up?
Should we change Hydrogen to only be Node 16 and up?
I think that was the original plan, but we were held back by Stackblitz at the time?
Minor addition, Vite cannot run our Hydrogen app on node 14.16. When upgrading to Node 16 it does work. This happened only after the new additions in v1.0.0 of Hydrogen.
@frandiox can we close this one? I think we've settled on supporting Node 16.5.0 or higher.
I think we just need to make sure that we properly error/warn the user when they are using a non-supported version, instead of just dying.