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

[relay-compiler 13] thread panic when using .gql extension schema file #3772

Closed
botsvik opened this issue Jan 24, 2022 · 2 comments
Closed
Labels
bug fixready rust Related to the compiler written in Rust

Comments

@botsvik
Copy link

botsvik commented Jan 24, 2022

Running relay-compiler with schema configured with .gql file produces:

thread 'main' panicked at 'no entry found for key', crates/relay-compiler/src/build_project/build_schema.rs:37:17

relay.config.js

module.exports = {
  src: "./src",
  schema: "./src/schema.gql",
  exclude: ["**/node_modules/**", "**/__mocks__/**", "**/__generated__/**"],
  language: "typescript",
};
@botsvik botsvik changed the title [relay-compiler 13] thread panic when using .gql schema file [relay-compiler 13] thread panic when using .gql extension schema file Jan 24, 2022
@alunyov
Copy link
Contributor

alunyov commented Jan 24, 2022

Yeah, we do not currently support .gql file extensions. As a workaround, can you try changing it to schema.graphql?

@botsvik
Copy link
Author

botsvik commented Jan 24, 2022

@alunyov Sure I did, thanks. Just created the issue. Could be helpful for others with same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fixready rust Related to the compiler written in Rust
Projects
None yet
Development

No branches or pull requests

2 participants