Version 0.14.5 doesnt work with config file
See original GitHub issueDescribe the bug
I using version 0.14.5 and it doesn’t work with codegen.yml
file. Always get error message Flag --schema is missing!
. When downgrade to 0.14.1, it’s work as expect.
To Reproduce Steps to reproduce the behavior:
- Install version 0.14.5
- Create codegen.yml
- Run
gql-gen
- Got error
Flag --schema is missing!
- Run
gql-gen --config ./codegen.yml
- Still got error
Flag --schema is missing!
Expected behavior It should work as expect
Environment:
- OS: Mac OS Mojave
- Codegen: 0.14.5
- Node: v8.11.1
Additional context I’m using yarn workspace, but got no problem with v0.14.1
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
Terraform Cloud and Terraform 0.14.5 crashes on plan #27682
Terraform Configuration Files. This was a working workspace and I changed a sensitive variable - and now the workspace crashes.
Read more >revapi:check - Revapi Maven Plugin
An example of this might be a config file which contains API changes to be ignored in all past versions of a library....
Read more >Provider Requirements - Configuration Language | Terraform
Providers are plugins that allow Terraform to interact with services, cloud providers, and other APIs. Learn how to declare providers in a configuration....
Read more >Release notes - Watson - GitHub Pages
The report and log commands now have new command line and config file options to (not) include the current frame in the output...
Read more >Changelog - 2012 — Gunicorn 20.0.4 documentation
initialize the logging config file with defaults. set timeout for client socket (slow client DoS). NoMoreData, ChunkMissingTerminator, InvalidChunkSize are now ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kamilkisiela: Oh, I found my mistake. I still have
--template
in my scripts. Thanks you!Starts here: https://github.com/dotansimha/graphql-code-generator/blob/31bf912c9bbced2870715b7aa5ae8d51991a114b/packages/graphql-codegen-cli/src/cli.ts#L7
Then: https://github.com/dotansimha/graphql-code-generator/blob/31bf912c9bbced2870715b7aa5ae8d51991a114b/packages/graphql-codegen-cli/src/config.ts#L70-L77
And throws:
https://github.com/dotansimha/graphql-code-generator/blob/31bf912c9bbced2870715b7aa5ae8d51991a114b/packages/graphql-codegen-cli/src/old-cli-config.ts#L85
Which means
isUsingOldApi
is true so you probably use either-t, --template
or-s, --schema
.I guess you double checked it so maybe you could provide a small repository with reproduction? It would help us a lot 😃