App reviews, troubleshooting, and recommendations
I am using https://github.com/Kyon147/laravel-shopify this package to develop the Shopify app using the Laravel 11 version. Frontend engine REACT.
App Bridge is the latest.
This is my app.blade.php file:
<head> <meta name="shopify-api-key" content="xxx" /> <script src="https://cdn.shopify.com/shopifycloud/app-bridge.js"></script> @viteReactRefresh @vite('resources/js/index.tsx') </head> <body> <div id="app"><!--index.jsx injects App.jsx here--></div> </body>
And this is the `index.tsx` file:
import React from 'react'; import App from './App' import '@shopify/polaris/build/esm/styles.css'; import ReactDOM from 'react-dom/client'; const root = document.createElement('div'); document.body.appendChild(root); ReactDOM.createRoot(root).render(<App />);
But giving the below error. Blade is getting perfectly but not index.tsx file.
Try setting your APP_URL to the ngrok url and then set the url for vite.
VITE_APP_URL=${APP_URL}
I've also found using Cloudflare tunnels much better then ngrok. Here is a tutorial on how to set it up if you are using valet - https://gist.github.com/irazasyed/46295bc3b823bb3b13c9acd51b96b4ad
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025