Open pannagger opened 2 years ago
Hello! Can you provide a reproduction of this issue?
One easy way would be to modify the example shop at https://hydrogen.new
Thanks!
Hello,
i did not modify the example shop at all, all i did is creating it with „npm init @shopify/hydrogen“, chose „Demo Store“, tried both typescript and javascript and started it running „npm run dev“. And when i call localhost:3000 multiple times I get this error.
kind regards Philip
Hi @pannagger , this should work if you are using the latest version of node 16 or 18; please ensure you're using one of those and it should work for you.
Hi i checked and all i do is this: and then I open chrome and call localhost:3000, and it works on the first try, but when I refresh the page using F5 I get this:
Hello, please update your version of node 16 to the latest release (16.17.0
as of writing this) and try again.
hi still get this 404 message is this normal? other than that it works fine now thank you
still get this 404 message is this normal?
404 message should only occur if you are on a route that doesn't have a corresponding route handler in your routes
folder.
So as shown, de console messages stays the same even if the client works perfect and the browser renders the application correctly. This 404 only appears on the server console because the router wants to load localhost:3000/sw.js, so this is the service worker isn’t it? However I ignored this for now since everything else works perfectly. the error appears initially from the demo shop.
I'm getting the same on a clean install of Hydrogen.
Steps to reproduce:
yarn create @shopify/hydrogen
cd hydrogen-folder
yarn install
yarn dev
node --version
v18.12.1
Tried this using npm instead (copied from here: https://hydrogen.shopify.dev/)
npm init @shopify/hydrogen
The demo-store
actually works fine here, but it seems to be loading in some totally different version? Before I saw the title
"SNOWDEVIL"(?) before the page crashed and the layout was totally different. Now I get this layout and it works fine:
Hi again,
finally we decided to restart the shop implementation based on the newest example shop, however after installing and setting up as described in the "Getting started" toturial we face an instable website, throwing an the error attached most of the time. Really don't get this tool, what do we do wrong?
Kind regards, Philip Pannagger
Discussed in https://github.com/Shopify/hydrogen/discussions/1983