Testing reinstall flows when dev server is still running

Hi all,

When reinstalling the app while the dev server is still running, it looks like the app disconnects from the dev server. As a result, I had to restart the dev server every time I reinstalled the app.

How do you test reinstall flows(code path) when the dev server is still running?

using official shopify react router app template.
shopify/cli/3.94.2
node-v22.18.0

Thank you

Hi @Estiak

When you get disconnected from the server, is there any specific error message? Do you have more detailed information?

Hi @kyle_liu,

Thanks for the reply.

Sorry, I should have made the post more clear regarding being disconnected from the dev server. There is no error message in the dev server (npm run dev) except the app preview doesn’t work anymore.

What I mean is that after reinstalling, the app is no longer connected to the dev server.
I think in the new dev dashboard, the dev server is tied to the app installation.

So once you uninstall, the app gets disconnected from the running dev server. We have re-run the dev to load the app. As a result, we can not properly test any reinstall flows that needs the existing dev server running.

Here’s the step to reproduce this,

  1. Start the dev server npm run dev
  2. Preview the app in the browser
  3. Uninstall the app
  4. Reinstall the app (while the dev server is still running)
  5. The app preview doesn’t work anymore

Thank you