Uniswap / Uniswap/interface

Unknown type 'TokenProject'.:graphql/data/Token.ts. Unknown type 'TokenProjectMarket'.:graphql/data/Token.ts

Open
#4,779 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
Failed to build:

  • Validation errors:
  • Unknown type 'TokenProject'.:graphql/data/Token.ts:43:55
  • Unknown type 'TokenProjectMarket'.:graphql/data/Token.ts:27:45

Steps to Reproduce

  1. yarn install

Expected Behavior
Navigate to [http://localhost:3000] to see UI page

Additional Context
I believe it is the problem of codegen.yml file. Maybe the file is missing some content.

Screen Shot 2022-10-02 at 22 00 58

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 by inspecting graphql/data/Token.ts at lines 27 and 43, then compare the referenced types with codegen.yml. Run yarn install to reproduce the validation errors and trace how the GraphQL types are generated. Done means the build completes and http://localhost:3000 loads the UI without unknown-type errors.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.