I'm following the basic railgun tutorial to use this module. Just the basic usage isn't working. It complains about @waku/core not having the correct export type.
I'm importing with import { RailgunWakuRelayerClient } from "@railgun-community/waku-relayer-client";
Then running await RailgunWakuRelayerClient.start(CHAIN, {}, () => {});
I'm running my app with npx tsx src/app.ts
Full stack trace:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /home/tim/projects/cashmoney/railgun-testing/node_modules/@waku/core/package.json
at __node_internal_captureLargerStackTrace (node:internal/errors:490:5)
at new NodeError (node:internal/errors:399:5)
at exportsNotFound (node:internal/modules/esm/resolve:361:10)
at packageExportsResolve (node:internal/modules/esm/resolve:641:13)
at resolveExports (node:internal/modules/cjs/loader:565:36)
at Module._findPath (node:internal/modules/cjs/loader:634:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1061:27)
at u.default._resolveFilename (/home/tim/projects/cashmoney/railgun-testing/node_modules/@esbuild-kit/cjs-loader/dist/index.js:1:1519)
at Module._load (node:internal/modules/cjs/loader:920:27)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at <anonymous> (/home/tim/projects/cashmoney/railgun-testing/node_modules/@railgun-community/waku-relayer-client/dist/waku/waku-relayer-waku-core.js:12:50)
at Object.<anonymous> (/home/tim/projects/cashmoney/railgun-testing/node_modules/@railgun-community/waku-relayer-client/dist/waku/waku-relayer-waku-core.js:154:2)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Object.F (/home/tim/projects/cashmoney/railgun-testing/node_modules/@esbuild-kit/cjs-loader/dist/index.js:1:941)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at <anonymous> (/home/tim/projects/cashmoney/railgun-testing/node_modules/@railgun-community/waku-relayer-client/dist/status/relayer-connection-status.js:5:37)
at Object.<anonymous> (/home/tim/projects/cashmoney/railgun-testing/node_modules/@railgun-community/waku-relayer-client/dist/status/relayer-connection-status.js:7:14)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Object.F (/home/tim/projects/cashmoney/railgun-testing/node_modules/@esbuild-kit/cjs-loader/dist/index.js:1:941)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at <anonymous> (/home/tim/projects/cashmoney/railgun-testing/node_modules/@railgun-community/waku-relayer-client/dist/railgun-waku-relayer-client.js:14:31)
at Object.<anonymous> (/home/tim/projects/cashmoney/railgun-testing/node_modules/@railgun-community/waku-relayer-client/dist/railgun-waku-relayer-client.js:125:38)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Object.F (/home/tim/projects/cashmoney/railgun-testing/node_modules/@esbuild-kit/cjs-loader/dist/index.js:1:941)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at <anonymous> (/home/tim/projects/cashmoney/railgun-testing/node_modules/@railgun-community/waku-relayer-client/dist/index.js:1:15)
at Object.<anonymous> (/home/tim/projects/cashmoney/railgun-testing/node_modules/@railgun-community/waku-relayer-client/dist/index.js:1:1)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Object.F (/home/tim/projects/cashmoney/railgun-testing/node_modules/@esbuild-kit/cjs-loader/dist/index.js:1:941)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at <anonymous> (/home/tim/projects/cashmoney/railgun-testing/src/wallet.ts:9:42)
at Object.<anonymous> (/home/tim/projects/cashmoney/railgun-testing/src/wallet.ts:19:14)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Object.F (/home/tim/projects/cashmoney/railgun-testing/node_modules/@esbuild-kit/cjs-loader/dist/index.js:1:941)
I'm following the basic railgun tutorial to use this module. Just the basic usage isn't working. It complains about
@waku/core
not having the correct export type.I'm importing with
import { RailgunWakuRelayerClient } from "@railgun-community/waku-relayer-client";
Then running
await RailgunWakuRelayerClient.start(CHAIN, {}, () => {});
I'm running my app with
npx tsx src/app.ts
Full stack trace: