Why am I getting a `root_path` error after creating Shopify App via Shopify CLI?

Hi community,

I am trying to get started with the Shopify CLI and am having problems getting a vanilla app installed (i.e. haven’t written any code yet, only trying to get things to connect up properly).

My Setup:

  • Rails 6.1.1
  • Ruby 2.7.2
  • Shopify CLI version 1.5.0 (installed via Homebrew)

Actions I’ve Taken:

I have used the shopify create, shopify serve, and shopify open commands to make a simple rails app.

When visiting the URL specified by the shopify open command, I get the following error:

undefined method ‘root_path’ for #ActionDispatch::Routing::RoutesProxy:0x0000000124837528

Screenshot:

Any ideas what is going wrong here?

Probably better to ask this as an issue on the github repo itself (and also search for past/closed issues where someone might have had the same issue). https://github.com/Shopify/shopify-app-cli

Thanks for the recommendation! I’ve posted it here: https://github.com/Shopify/shopify-app-cli/issues/1035