Shopify / shopify-app-template-remix

364 stars 148 forks source link

Shopify CLI not working with yarn v1 #601

Closed MoSattler closed 7 months ago

MoSattler commented 8 months ago

Issue summary

Before opening this issue, I have:

Expected behavior

Projects created with yarn v1 should work when trying to connect them to existing apps.

Actual behavior

Projects created with yarn v1 do not work when trying to connect them to existing apps.

Steps to reproduce the problem

  1. yarn create @shopify/app --package-manager=yarn --name=testapp --template=remix --flavor=typescript
  2. cd testapp
  3. yarn dev

Debug logs

user@users-MacBook-Pro testapp % yarn dev
yarn run v1.22.21
$ shopify app dev

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

?  Create this project as a new app on Shopify?
✔  No, connect it to an existing app

?  Which existing app is this for?
✔  Korner

╭─ error ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                             │
│  Fix a schema error in shopify.app.toml:                                                                                    │
│  [                                                                                                                          │
│    {                                                                                                                        │
│      "code": "invalid_type",                                                                                                │
│      "expected": "string",                                                                                                  │
│      "received": "undefined",                                                                                               │
│      "path": [                                                                                                              │
│        "name"                                                                                                               │
│      ],                                                                                                                     │
│      "message": "Required"                                                                                                  │
│    },                                                                                                                       │
│    {                                                                                                                        │
│      "code": "invalid_type",                                                                                                │
│      "expected": "object",                                                                                                  │
│      "received": "undefined",                                                                                               │
│      "path": [                                                                                                              │
│        "auth"                                                                                                               │
│      ],                                                                                                                     │
│      "message": "Required"                                                                                                  │
│    },                                                                                                                       │
│    {                                                                                                                        │
│      "code": "invalid_type",                                                                                                │
│      "expected": "object",                                                                                                  │
│      "received": "undefined",                                                                                               │
│      "path": [                                                                                                              │
│        "webhooks"                                                                                                           │
│      ],                                                                                                                     │
│      "message": "Required"                                                                                                  │
│    },                                                                                                                       │
│    {                                                                                                                        │
│      "code": "invalid_type",                                                                                                │
│      "expected": "string",                                                                                                  │
│      "received": "undefined",                                                                                               │
│      "path": [                                                                                                              │
│        "application_url"                                                                                                    │
│      ],                                                                                                                     │
│      "message": "Required"                                                                                                  │
│    },                                                                                                                       │
│    {                                                                                                                        │
│      "code": "invalid_type",                                                                                                │
│      "expected": "boolean",                                                                                                 │
│      "received": "undefined",                                                                                               │
│      "path": [                                                                                                              │
│        "embedded"                                                                                                           │
│      ],                                                                                                                     │
│      "message": "Required"                                                                                                  │
│    }                                                                                                                        │
│  ]                                                                                                                          │
│                                                                                                                             │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
MoSattler commented 8 months ago

Possibly related to #591

paulomarg commented 7 months ago

I'm not sure this is directly related to yarn v1 - it seems more likely to me that you have an error in your shopify.app.toml file, which will result in errors like those.

Could you please share what your TOML file looks like (without any secret keys of course!)?

github-actions[bot] commented 7 months ago

We are closing this issue because we did not hear back regarding additional details we needed to resolve this issue. If the issue persists and you are able to provide the missing clarification we need, you can respond here or create a new issue.

We appreciate your understanding as we try to manage our number of open issues.