Yikes! a new CLI 3 "npm run dev" ERROR: "Failed to prompt ... "

Solved

Yikes! a new CLI 3 "npm run dev" ERROR: "Failed to prompt ... "

den232
Shopify Partner
213 8 55

Hello.  I'm mystified by this (new) error message from CLI 3.

 

I'm trying to build my app and have begun seeing this error when running "npm run dev". It is persistent, I have rebooted, removed and reinstalled CLI ...

 

I am running the command interactively: by typing it.

 

I have already answered  "Create this project as a new app on Shopify?" (as No), so it IS associated with my app.

 

Current Shopify CLI version: 3.47.3

 

 

─ external error ──────────────────────────────────────────────────────────────

Error coming from `npm run dev`

Command failed with exit code 1: npm run dev
╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  Failed to prompt:                                                           │
│                                                                              │
│  Create this project as a new app on Shopify?                                │
│                                                                              │
│  This usually happens when running a command non-interactively, for example  │
│   in a CI environment, or when piping input from another process.            │
│                                                                              │
│  To resolve this, specify the option in the command, or run the command in   │
│  an interactive environment such as your local terminal.                     │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯


> sdapp14@1.0.0 dev
> shopify app dev


Looks like this is the first time you're running dev for this project.
Configure your preferences by answering a few questions.


Before proceeding, your project needs to be associated with an app.


────────────────────────────────────────────────────────────────────────────────

 

Thanks for your help!  jb

Accepted Solution (1)

den232
Shopify Partner
213 8 55

This is an accepted solution.

I found it!  Is this cryptic, or what?   

 

Turns out I had a shopify.web.toml file in the web/ directory itself.  Must have come from the init.   At any rate, I deleted it and was back on track ... after a day ... 

 

Cheers jb

View solution in original post

Reply 1 (1)

den232
Shopify Partner
213 8 55

This is an accepted solution.

I found it!  Is this cryptic, or what?   

 

Turns out I had a shopify.web.toml file in the web/ directory itself.  Must have come from the init.   At any rate, I deleted it and was back on track ... after a day ... 

 

Cheers jb