facebook / facebook/relay

"@graphql-codegen/gql-tag-operations-preset" causing relay-compiler not finding config file

Open
#4,554 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Ran into a weird issue where i had a package:
"@graphql-codegen/gql-tag-operations-preset"

When it was included in the package.json, when runnning relay-compiler, it returned the error "Missing required arguments: schema, src" even though they were specified in the config file, so I suspect there is some conflict causing the relay to not finding the config file...

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by including @graphql-codegen/gql-tag-operations-preset in package.json and running relay-compiler with the referenced config file. Check why the compiler reports missing schema and src despite their presence; done when the configuration is discovered and those arguments are accepted.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, javascript
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.