I’ve created a new Shopify Remix template app, but the server isn’t starting. When I run npm run dev or shopify app dev, I encounter an error. I’ve attached the error message below for reference.
error ──────────────────────────────────────────────────────────────────────╮
│ │
│ The operation was aborted. │
│ │
│ Run the command again or see Shopify CLI documentation [1] for more │
│ options. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[1] Select a networking option for local development
Hey @Ahsan_Ahmed - can you try running if you’re building on a dev shop:
shopify app dev --use-localhost
I’m wondering if there’s a configuration issue with the dev tunnel you might be using - when you run the app dev command to set up the app in the CLI, did it go through the initial set up questions (like which shop you’ll install it on, etc), or does it just abort the process right at the start there?
I think using localhost should resolve the issue if you wanted to try that, but if you do need to use a tunnel for development, I’m happy to keep digging into this for sure.
Yes, I did set up the app and selected the partner store — not just once, but multiple times. However, I keep running into the same error each time.
I also tried running it on localhost, and it worked fine there. I even tested it with the ngrok tunnel, and while the app starts, the API calls aren’t going through — I’m getting a “trusted URL” error.
Ideally, I want to use the default trycloudflare tunnel that comes with Shopify apps, as that’s usually more seamless. Is there a way to ensure it’s being used correctly, or anything I should check to make sure it’s configured properly?
Thanks for the support! @Alan_G I’ve pasted the logs below — please have a look.
2025-04-21T17:28:17.220Z: Port 3457 is free
2025-04-21T17:28:17.234Z: Polling tunnel status for cloudflare (attempt 0): error
2025-04-21T17:28:17.234Z: Getting a random port…
╭─ error ──────────────────────────────────────────────────────────────────────╮
│ │
│ The operation was aborted. │
│ │
│ Run the command again or see Shopify CLI documentation [1] for more │
│ options. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[1] Select a networking option for local development
2025-04-21T17:28:17.287Z: Running system process:
· Command: npm prefix
· Working directory: D:/Shopify App’s/order-trackingify
2025-04-21T17:28:17.292Z: Random port obtained: 49805
2025-04-21T17:28:17.719Z: Obtaining the dependency manager in directory D:\Shopify App’s\order-trackingify…
2025-04-21T17:28:18.825Z: Request to https://monorail-edge.shopifysvc.com/v1/produce completed in 626 ms
2025-04-21T17:28:18.867Z: Reporting handled error to Bugsnag: The operation was aborted.
2025-04-21T17:28:18.915Z: Running system process:
· Command: npm prefix
· Working directory: D:/Shopify App’s/order-trackingify
2025-04-21T17:28:19.356Z: Obtaining the dependency manager in directory D:\Shopify App’s\order-trackingify…