Giter Site home page Giter Site logo

Typescript Build Error on the entity EraReward, Call, Stake, and Contract & Problems running the app. about dapps-staking-indexer HOT 5 CLOSED

bobo-k2 avatar bobo-k2 commented on July 28, 2024
Typescript Build Error on the entity EraReward, Call, Stake, and Contract & Problems running the app.

from dapps-staking-indexer.

Comments (5)

bobo-k2 avatar bobo-k2 commented on July 28, 2024 2

Hi @corlys,

thank you for reporting. It looks like SubQuery changed a way how types are genrated with subql codegen, so I decided to add all types to the project. Please pull main branch. Now you can skip yarn codegen part from readme, since all types are part of the project.

from dapps-staking-indexer.

corlys avatar corlys commented on July 28, 2024

hello bobo-k2, thank you for answering, i just pull the latest man branch and it does not have any of the errors anymore. But i still having problems running the app (at least i think so). When i already pull the image using docker compose pull & docker compose up the app just stays like this for a long time. Is it supposed to be like this?

➜  dapps-staking-indexer git:(main) docker compose up
[+] Building 0.0s (0/0)                                                                                                                                                                
[+] Running 4/4
 ✔ Network dapps-staking-indexer_default             Created                                                                                                                      0.1s 
 ✔ Container dapps-staking-indexer-postgres-1        Created                                                                                                                      0.1s 
 ✔ Container dapps-staking-indexer-subquery-node-1   Created                                                                                                                      0.1s 
 ✔ Container dapps-staking-indexer-graphql-engine-1  Created                                                                                                                      0.1s 
Attaching to dapps-staking-indexer-graphql-engine-1, dapps-staking-indexer-postgres-1, dapps-staking-indexer-subquery-node-1

http://localhost:3000 also refusde to connect

from dapps-staking-indexer.

bobo-k2 avatar bobo-k2 commented on July 28, 2024

you should see something like

docker-compose up
[+] Running 3/0
 ⠿ Container dapps-staking-indexer-postgres-1        Running                                                                                              0.0s
 ⠿ Container dapps-staking-indexer-subquery-node-1   Running                                                                                              0.0s
 ⠿ Container dapps-staking-indexer-graphql-engine-1  Running                                                                                              0.0s
Attaching to dapps-staking-indexer-graphql-engine-1, dapps-staking-indexer-postgres-1, dapps-staking-indexer-subquery-node-1
dapps-staking-indexer-subquery-node-1   | 2023-07-11T14:58:19.640Z <BlockDispatcherService> INFO Enqueueing blocks 3579021...3579021, total 1 blocks 
dapps-staking-indexer-subquery-node-1   | 2023-07-11T14:58:19.640Z <BlockDispatcherService> INFO fetch block [3579021,3579021], total 1 blocks 
dapps-staking-indexer-subquery-node-1   | 2023-07-11T14:58:28.983Z <BlockDispatcherService> INFO Enqueueing blocks 3579023...3579023, total 1 blocks 

Maybe to check subquery-node-1 logs in Docker. Also I am not sure where Network dapps-staking-indexer_default comes from. Did you change docker-compose.yml

from dapps-staking-indexer.

bobo-k2 avatar bobo-k2 commented on July 28, 2024

Hey @corlys is this still a problem?

from dapps-staking-indexer.

corlys avatar corlys commented on July 28, 2024

Sorry for the long resposnse, i forgot about this. It works somehow after updating the subquery library. Closing this now, thanks!

from dapps-staking-indexer.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.