Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't find shopify.app.toml Error #297

Closed
pkyek1 opened this issue Aug 9, 2023 · 17 comments
Closed

Couldn't find shopify.app.toml Error #297

pkyek1 opened this issue Aug 9, 2023 · 17 comments

Comments

@pkyek1
Copy link

pkyek1 commented Aug 9, 2023

@mkevinosullivan
i have working on this new template from a week

and was working good. i was liking it

but suddenly iam now receiving this error

Couldn't find shopify.app.toml

while running npm run dev or yarn dev

i dont know whats the problem

@blanklob
Copy link
Contributor

Did you try to run: yarn run dev -- --reset or npm run dev -- --reset

@pkyek1
Copy link
Author

pkyek1 commented Aug 14, 2023

yes

but same error

@byrichardpowell
Copy link
Contributor

Please can you confrim that your codebase contains a shopify.app.toml file?

@gonzaloriestra
Copy link
Contributor

Could you try running yarn shopify app config link? That should recreate the missing configuration file. More info: https://shopify.dev/docs/apps/tools/cli/configuration

@maru-mm
Copy link

maru-mm commented Aug 22, 2023

i have the same error i create a new app and after npm run dev says

error

│ Couldn't find the configuration file for │
│ /Users/maru/Desktop/... │
│ you in an app directory?

macos m1

@gonzaloriestra
Copy link
Contributor

@maru-mm could you please share detailed reproduction steps and the output of npm run dev -- --verbose?

@joelvh
Copy link

joelvh commented Aug 28, 2023

For me, I get this error when there's a space in the path to the app. When I moved it to a folder without a space in the name, it worked.

@maru-mm
Copy link

maru-mm commented Aug 28, 2023

@gonzaloriestra i resolved the problem updated the version app with the latest of this days

@joelvh
Copy link

joelvh commented Aug 28, 2023

FWIW I still got the error with the latest version from today until I removed the space in the path to the app.

@gonzaloriestra
Copy link
Contributor

I'm closing since the template has no issue.

@joelvh I've tested this template from the CLI with a folder including spaces in Mac/Windows and it works for me. Could you please open an issue in https://github.com/Shopify/cli adding as much details as you can? Thanks!

@joelvh
Copy link

joelvh commented Sep 7, 2023

I'm closing since the template has no issue.

@joelvh I've tested this template from the CLI with a folder including spaces in Mac/Windows and it works for me. Could you please open an issue in https://github.com/Shopify/cli adding as much details as you can? Thanks!

@gonzaloriestra If it worked for you, it could be spaces or parenthesis in the path (since I had both). And technically I believe it was also symlinked. If that gives you an idea of what else to try, it might help reproduce it. Otherwise, I'll see when I get a chance to create a ticket with more test results.

@djkgamc
Copy link

djkgamc commented Oct 7, 2023

This bug is still active on shopify/cli 3.49.6. I also had spaces and parenthesis, no symlink. Switching to a folder without them fixed the issue, but I was tearing my hair out until I discovered this page, so it's worth fixing this bug

@JasonHassold
Copy link

I just ran into this issue as well, it would be nice if the error message at least told you that the folder name is the issue

@Nilesh-Aditya
Copy link

I still get this error to this day with @shopify/cli @gonzaloriestra can you please try folder named something like Name - (temp), it might help you reproduce this problem.

@gonzaloriestra
Copy link
Contributor

Could you please open an issue in https://github.com/Shopify/cli? Thanks!

@mihaiiova
Copy link

In my case it happens in a pnpm workspace.

  • It doesn't work if i run the command like so: pnpm --filter projectName dev <-- shows error
  • it works fine if i go to the folder and run it form there: cd path/to/project && pnpm dev <-- no error

I don't know why. It's beyond my level of understanding. Hope it helps someone with similar setup.

@gonzaloriestra
Copy link
Contributor

@mihaiiova to run a command from outside of the project folder, you must pass the path flag: pnpm --filter projectName dev --path path/to/project or if you have the CLI installed globally: shopify app dev --path path/to/project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants