Uniswap / Uniswap/interface

Failure to Dockerize Application

Open
#6,188 1 comment 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

I am trying to pull and dockerize the app, but when I try to, it gets:

⚠ Generate outputs
  ❯ Generate to src/graphql/data/__generated__/types-and-hooks.ts
    ✖
            Failed to load schema from ./src/graphql/data/schema.graphql:


          Unable to find any GraphQL type definitions for the following pointers:

     …
    ◼ Load GraphQL documents
    ◼ Generate
error Command failed with exit code 1.

In my attempt to fix the problem, I still get the issue

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

and

#13 390.2 $ typechain --target ethers-v5 --out-dir src/abis/types './src/abis/**/*.json' --show-stack-traces
#13 390.5 Error occured:  No files passed.
#13 390.5 `./src/abis/**/*.json` didn't match any input files in /app
#13 390.5 Stack trace:  Error: No files passed.
#13 390.5 `./src/abis/**/*.json` didn't match any input files in /app
#13 390.5     at main (/app/node_modules/typechain/dist/cli/cli.js:35:15)
#13 390.5     at Object.<anonymous> (/app/node_modules/typechain/dist/cli/cli.js:52:1)
#13 390.5     at Module._compile (node:internal/modules/cjs/loader:1103:14)
#13 390.5     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
#13 390.5     at Module.load (node:internal/modules/cjs/loader:981:32)
#13 390.5     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
#13 390.5     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
#13 390.5     at node:internal/main/run_main_module:17:47
#13 390.5 error Command failed with exit code 1.
#13 390.5 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Does anyone know how to help?

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 src/graphql/data/schema.graphql and the generation target src/graphql/data/generated/types-and-hooks.ts, then inspect the TypeChain command using src/abis/**/*.json. Reproduce the Docker build and determine why the schema and ABI inputs are unavailable; done means the build completes without the GraphQL or TypeChain generation failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, graphql, typescript
Domain
api, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.