hydrogen icon indicating copy to clipboard operation
hydrogen copied to clipboard

Vite renderToReadableStream error after upgrading cli-hydrogen from 7 to 8.0.4

Open belazaras opened this issue 1 year ago • 4 comments

What is the location of your example repository?

No response

Which package or tool is having this issue?

CLI

What version of that package or tool are you using?

8.0.4

What version of Remix are you using?

2

Steps to Reproduce

just launch shopify hydrogen dev and navigate to localhost.

Expected Behavior

it should just work.

Actual Behavior

image tried many things and didn't work, included what's suggested in the image. also compared to a new install but can't figure what old code might be breaking it, or which packages might be incompatible.

belazaras avatar May 30 '24 12:05 belazaras

Did you use h2 setup vite to migrate? Make sure your vite.config.js is something like this and that you have "type": "module" in your package.json

Also, as per the release notes, make sure you have installed @shopify/mini-oxygen in your project.

frandiox avatar May 31 '24 05:05 frandiox

h2 setup vite says command not found. all the rest I did and when booting server it throws this exports error now: image

belazaras avatar Jun 03 '24 15:06 belazaras

Try with what's explained here: https://github.com/Shopify/hydrogen/issues/2129#issuecomment-2119588510

frandiox avatar Jun 04 '24 05:06 frandiox

If I add remix-run/dev to ssr.optimizeDeps.include which is where the exports is not defined, it causes a trillion other issues for vite

belazaras avatar Jun 11 '24 15:06 belazaras

This issue has been marked as stale due to inactivity for 60 days. Please comment or update if this is still relevant, otherwise it will be closed in 7 days.

github-actions[bot] avatar Sep 13 '25 16:09 github-actions[bot]