Unknown type 'TokenProject'.:graphql/data/Token.ts. Unknown type 'TokenProjectMarket'.:graphql/data/Token.ts
Open
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
- 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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