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

⚠️ Cannot run Horizon app locally! #65

Open
wpplumber opened this issue Feb 20, 2024 · 0 comments
Open

⚠️ Cannot run Horizon app locally! #65

wpplumber opened this issue Feb 20, 2024 · 0 comments

Comments

@wpplumber
Copy link

Welcome,

I followed the guide in setting .env with the requirements but I got the following errors!

 horizon git:(main) pnpm dev

> @swell/[email protected] dev /Users/wpplumber/Workspace/Tools/Ecommerce/Swell/oss/horizon
> yarn setup && next dev

yarn run v1.22.19
$ yarn sync && yarn graphql:generate && yarn theme:generate
$ node -r dotenv/config ./build-utils/sync-storefront.mjs
exec error: Error: Command failed: swell model push -c -f ./config/content/full_width_media.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell model push -c -f ./config/content/memberships.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell model push -c -f ./config/content/divider.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell storefronts push --id $SWELL_STOREFRONT_ID -t editor -s defaults -f ./config/editor.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell storefronts push --id $SWELL_STOREFRONT_ID -t settings -s defaults -f ./config/defaults.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell model push -c -f ./config/content/category.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell model push -c -f ./config/content/quiz_question.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell model push -c -f ./config/content/heading_with_text.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell model push -c -f ./config/content/categories_preview.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell model push -c -f ./config/content/multiple_features.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell model push -c -f ./config/content/product.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell model push -c -f ./config/content/page.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell model push -c -f ./config/content/multiple_panels.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell model push -c -f ./config/content/products_preview.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell model push -c -f ./config/content/press_mentions_carousel.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell model push -c -f ./config/content/quiz.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell model push -c -f ./config/content/reviews.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell model push -c -f ./config/content/quiz_transition.json --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

exec error: Error: Command failed: swell storefronts toggle-editor --id $SWELL_STOREFRONT_ID --theme-id horizon --enable true --secret-key $SWELL_SECRET_KEY --store $SWELL_STORE_ID

$ graphql-codegen --config codegen.yml -r dotenv/config
✔ Parse Configuration
⚠ Generate outputs
  ❯ Generate to ./graphql.schema.json
    ✔ Load GraphQL schemas
    ✔ Load GraphQL documents
    ✖ GraphQL Document Validation failed with 2 errors;
      Error 0: Cannot query field "content" on type "SwellCategory".
      at /Users/wpplumber/Workspace/Tools/Ecommerce/Swell/oss/horizon/lib/graphql/quer…
      Error 1: Cannot query field "content" on type "SwellProduct".
      at /Users/wpplumber/Workspace/Tools/Ecommerce/Swell/oss/horizon/lib/graphql/quer…
  ❯ Generate to lib/graphql/generated/sdk.ts
    ✔ Load GraphQL schemas
    ✔ Load GraphQL documents
    ✖ GraphQL Document Validation failed with 2 errors;
      Error 0: Cannot query field "content" on type "SwellCategory".
      at /Users/wpplumber/Workspace/Tools/Ecommerce/Swell/oss/horizon/lib/graphql/quer…
      Error 1: Cannot query field "content" on type "SwellProduct".
      at /Users/wpplumber/Workspace/Tools/Ecommerce/Swell/oss/horizon/lib/graphql/quer…
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
 ELIFECYCLE  Command failed with exit code 1.
➜  horizon git:(main) pnpm dev        
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

1 participant