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

issue with schema generation #2

Open
tipbr opened this issue Nov 6, 2024 · 2 comments
Open

issue with schema generation #2

tipbr opened this issue Nov 6, 2024 · 2 comments

Comments

@tipbr
Copy link

tipbr commented Nov 6, 2024

Cloned template. Ran npm install.

Console error:

> [email protected] prepare
> npx simple-git-hooks && npm run generate-schema

[INFO] Successfully set the pre-commit with command: npm run format
[INFO] Successfully set all git hooks

> [email protected] generate-schema
> dotenv -c -- bash -c 'gql.tada generate schema https://graphql.datocms.com --header "X-Exclude-Invalid: true" --header "Authorization: $DATOCMS_PUBLISHED_CONTENT_CDA_TOKEN"'

/bin/bash: -c: line 1: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 2: syntax error: unexpected end of file
npm ERR! code 2
npm ERR! path C:\Users\{{user}}\Documents\Projects\dato-frontend
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c npx simple-git-hooks && npm run generate-schema
@stefanoverna
Copy link
Member

Are you using PowerShell?

@tipbr
Copy link
Author

tipbr commented Nov 6, 2024

Tried powershell, Git bash, wsl

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

2 participants