Uniswap / Uniswap/interface

relay.config.js is invalid

Open
#5,837 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
5.5k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Bug Description
[ERROR] Config C:\Users\Administrator\Desktop\interface-4.166.2\relay.config.js is invalid

Steps to Reproduce

download version 4.166.2 and use yarn to install node_modules.Finally prompt me the message.

[5/5] Building fresh packages...
$ patch-package
patch-package 6.4.7
Applying patches...
@vanilla-extract/css@1.7.2 ✔
$ yarn contracts:compile && yarn graphql:fetch && yarn graphql:generate && yarn i18n:compile
yarn run v1.22.19
$ yarn contracts:compile:abi && yarn contracts:compile:v3
$ typechain --target ethers-v5 --out-dir src/abis/types "./src/abis/**/*.json"
Successfully generated 26 typings!
$ typechain --target ethers-v5 --out-dir src/types/v3 "./node_modules/@uniswap/**/artifacts/contracts/**/*[!dbg].json"
Successfully generated 196 typings!
Done in 18.13s.
yarn run v1.22.19
$ node fetch-schema.js
Failed to fetch schema from https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3
Failed to fetch schema from https://api.uniswap.org/v1/graphql
Done in 0.41s.
yarn run v1.22.19
$ yarn relay && yarn relay-thegraph
$ relay-compiler relay.config.js
[ERROR] Config `C:\Users\Administrator\Desktop\interface-4.166.2\relay.config.js` is invalid:
 - The `schema` configured for project `default` does not exist at `./src/graphql/data/schema.graphql`.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
20230117100156

Expected Behavior
A clear and concise description of what you expected to happen.

Additional Context
Add any other context about the problem here (screenshots, whether the bug only occurs only in certain mobile/desktop/browser environments, etc.)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with relay.config.js and run the reported yarn installation and generation commands on version 4.166.2. Check fetch-schema.js and whether src/graphql/data/schema.graphql is produced after the schema fetch step; done means the Relay compiler finds that schema and the command completes successfully.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.