When I ran npm run dev my app didn’t install in the dev store and only pushed theme extension changes. When opening the preview I got 404.
I solved it by deleting
unstable_newEmbeddedAuthStrategy: true,
from the shopify config in shopify.server.js
After I did that, the app installed automatically. Theres an issue in shopify new OAUTH.