Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@substreams/core dependencies issues #544

Open
AndlerRL opened this issue Oct 1, 2024 · 0 comments
Open

@substreams/core dependencies issues #544

AndlerRL opened this issue Oct 1, 2024 · 0 comments

Comments

@AndlerRL
Copy link

AndlerRL commented Oct 1, 2024

Greetings 👋 I am having a situation with the @substreams/core package:

I have been upgrading my indexer to support the latest substreams strategies to develop such streamer however, on my stack I normally use bun but on this one I decided to keep yarn due to it was part of a monorepo. The issue started when trying to execute the code, complaining about dependencies, so I decided to change everything to bun and bun was not able to install the dependencies. So I moved to pnpm and had almost the same result as yarn... so at the end I ended up to use npm and moving the indexer away from the monorepo to isolate the app and do better debugging.

The settings of all my package managers are the default, so I am not sure if it is worth it to share it here. But I will share the screenshots below of the received errors per package manager.

yarn

Screenshot from 2024-09-26 19-15-35

pnpm

Screenshot from 2024-09-26 19-13-00

bun

Screenshot from 2024-09-26 19-16-20

As I read, it seems that the error is about a package dependencie that does not match with actual version and requires a higher version of the highlighted packages that shows on the errors. After fixing the dependencies version, I think this should be fixed.

package.json

{
  "name": "<my-app-name>",
  "version": "2.0.0",
  "main": "src/index.mts",
  "private": true,
  "license": "UNLICENSED",
  "type": "module",
  "scripts": {
    "dev": "env-cmd nodemon --watch 'src/**' --ext 'mts' --exec 'node --import=tsx src/index.mts' --trace-warnings",
    "build": "graph build",
    "deploy": "graph deploy --node https://api.studio.thegraph.com/deploy/ <my-app-name>",
    "create-local": "graph create --node http://localhost:8020/ <my-app-name>",
    "remove-local": "graph remove --node http://localhost:8020/ <my-app-name>",
    "deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 <my-app-name>",
    "test": "graph test"
  },
  "dependencies": {
    "@graphprotocol/client-cli": "latest",
    "@graphprotocol/graph-cli": "latest",
    "@substreams/core": "latest",
    "@substreams/manifest": "latest",
    "@substreams/node": "latest",
    "@connectrpc/connect-node": "1.3.0",
    "@wharfkit/session": "^1.4.0",
    "@wharfkit/wallet-plugin-privatekey": "^1.1.0",
    "node-fetch": "2.6",
    "overload-protection": "^1.2.3",
    "ws": "^8.13.0"
  },
  "devDependencies": {
    "@types/lodash": "^4.14.196",
    "@types/node": "^18.15.11",
    "@types/node-fetch": "^2.6.4",
    "@types/overload-protection": "^1.2.1",
    "@types/ws": "^8.5.5",
    "env-cmd": "^10.1.0",
    "nodemon": "^3.0.1",
    "rimraf": "^4.4.0",
    "tsx": "^4.19.1",
    "typescript": "^5.6.2"
  }
}

Kernel Information:

Linux andler-popos 6.2.6-76060206-generic #202303130630~1681329778~22.04~d824cd4 SMP PREEMPT_DYNAMIC Wed A x86_64 x86_64 x86_64 GNU/Linux

Distribution Details:

DISTRIB_ID=Pop
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Pop!_OS 22.04 LTS"
NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant