You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code works fine with ethers@5 but fails with ethers@6
Maybe it has to do with BigNumber being replaced with BigInt in ethers-v6 const { EvmPriceServiceConnection } = require("@pythnetwork/pyth-evm-js"); // version - ^1.44.0
/home/ubuntu/sample-project/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
at Module._load (node:internal/modules/cjs/loader:901:27)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at Object. (/home/ubuntu/sample-project/node_modules/@pythnetwork/price-service-sdk/lib/AccumulatorUpdateData.js:7:33)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/ubuntu/sample-project/node_modules/@pythnetwork/price-service-sdk/lib/AccumulatorUpdateData.js',
'/home/ubuntu/sample-project/node_modules/@pythnetwork/price-service-sdk/lib/index.js',
'/home/ubuntu/sample-project/node_modules/@pythnetwork/price-service-client/lib/PriceServiceConnection.js',
'/home/ubuntu/sample-project/node_modules/@pythnetwork/price-service-client/lib/index.js',
'/home/ubuntu/sample-project/node_modules/@pythnetwork/pyth-evm-js/lib/EvmPriceServiceConnection.js',
'/home/ubuntu/sample-project/node_modules/@pythnetwork/pyth-evm-js/lib/index.js',
'/home/ubuntu/sample-project/utils.js',
'/home/ubuntu/sample-project/orderListener.js',
'/home/ubuntu/sample-project/index.js'
]
}
import { AptosPriceServiceConnection } from '@pythnetwork/pyth-aptos-js'
"@pythnetwork/pyth-aptos-js": "^1.4.2",
"@pythnetwork/pyth-common-js": "^1.4.0",
Error:
Module not found: Error: Can't resolve 'bn.js' in '/home/cot-zzq/my-first-dapp/client/node_modules/@pythnetwork/price-service-sdk/lib'
The text was updated successfully, but these errors were encountered: