facebook / facebook/relay

[relay-compiler 13] compiler panic for client-only operations: Expected to have a operation_text operation.

Open
#3,760 12 comments 0 reactions 0 assignees View on GitHub
bug rust
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

`relay-compiler` is not able to discover the client schema extensions, same were working in v12.
Is necessary some other config setting to enable them? or just enough to drop the file into the `src` folder as it was before?

```text
[ERROR] ✖︎ The type `Query` has no field `local`.

src/trial.js:9:5
8 │ query trial2Query {
9 │ local {
│ ^^^^^
10 │ color

[ERROR] Compilation failed.
[ERROR] Failed to build:
- Validation errors:
- The type `Query` has no field `local`.:src/trial.js:82:87
```

Demo repo linked here: https://github.com/artola/rc-issue-3760

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.