Hi everyone, I’ve been trying to build a Shopify app using the official Node + Remix + Vite stack (shopify app create node) and after 4 days I’m honestly stuck.
Stack: Shopify CLI: 3.81.2 Node.js backend Remix + Vite frontend @shopify/app-bridge-react for embedding
Main issues I keep running into:
1 Named exports error: javascript Named export ‘Provider’ not found. The requested module ‘shopify/app-bridge-react’ is a CommonJS module.
Even using this import: javascript Copiar Editar import pkg from ‘@shopify/app-bridge-react’; const { Provider } = pkg; Later, I get similar errors for other components like NavMenu.
2- Random ports every time I run shopify app dev: It assigns a new port each restart (3000, 57491, etc), which messes up redirect URLs and iframes.
3-- Sandbox error in iframe console: swift Copiar Editar Blocked script execution because the document’s frame is sandboxed and the ‘allow-scripts’ permission is not set. I read that it’s harmless, but my app just stays blank.
4-- WebSocket errors: sql Copiar Editar WebSocket closed without opened. And Vite dev server issues.
5 OAuth redirect: I made sure to redirect with host and shop query params after auth, but it doesn’t seem to fix the blank screen.
What I already tried:
Reinstalling node_modules.
Removing Remix and leaving only a minimal index route.
Rewriting root.jsx with the official Provider example.
Switching import styles (CommonJS/ESM).
Checking whitelisted URLs in Partners Dashboard .
Trying different forceRedirect settings.
Changing ports manually (not supported by the CLI).
My main question. Ive seen others report similar problems combining Remix, Vite, and App Bridge.
Would you recommend dropping Remix/Vite altogether and going with a simpler setup like Node + Koa + React without Remix? Or is there any known stable example repo with this stack fully working? Any advice or experience would be really appreciated, I’m losing days without progress and just want a reliable baseline to build from.
Thanks so much!