ReferenceError: self is not defined
at Object.<anonymous> ←[90m(~\project-path\←[39mhyperion-history-api\hyperion-stream-client.js:1:299←[90m)←[39m
←[90m at Module._compile (node:internal/modules/cjs/loader:1159:14)←[39m
←[90m at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)←[39m
←[90m at Module.load (node:internal/modules/cjs/loader:1037:32)←[39m
←[90m at Module._load (node:internal/modules/cjs/loader:878:12)←[39m
←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)←[39m
←[90m at node:internal/main/run_main_module:23:47←[39m
Besides installing dependencies and compiling (npm i & npm run build - both of which ran without issue), I have not done any other setup. Am I using the correct file for the stream client?
Description Apologies if I am in the wrong place with this question.
My goal is to use the stream client to pick up historical and live actions for specific accounts on mainnet and testnet. The documentation appears to point to this repo for the client: https://github.com/eosrio/hyperion-stream-client, but does not seem to be working as documented in this issue: https://github.com/eosrio/hyperion-stream-client/issues/14: .
I was later informed that the stream client repo is outdated and was referred to this repo. I was trying to use https://github.com/eosrio/hyperion-history-api/blob/main/hyperion-stream-client.js, but any time I call or import this file I get the following error:
Besides installing dependencies and compiling (
npm i
&npm run build
- both of which ran without issue), I have not done any other setup. Am I using the correct file for the stream client?Environment
node version: 18.12.1
hyperion-history version: 3.3.8