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

Error while importing "demux-eos" #103

Open
riccardopersiani opened this issue Oct 1, 2019 · 2 comments
Open

Error while importing "demux-eos" #103

riccardopersiani opened this issue Oct 1, 2019 · 2 comments

Comments

@riccardopersiani
Copy link

I am experiencing an error while importing the demux-eos package following the instructions written in the readme.

What is not working

const {NodeosActionReader} = require("demux-eos/v1.8")

import {NodeosActionReader} from "demux-eos/v1.8"

Results in an import error.

Also in the doc sometimes the v for the version is missing like in NodeosActionReader setup section, last line of the text I attach here:

NodeosActionReader

Makes requests directly to a specified Nodeos API endpoint to obtain block data.
Setup

All that is required is a running Nodeos instance that has the chain_api_plugin enabled.
Example

const { BaseActionWatcher } = require("demux")
const { NodeosActionReader } = require("demux-eos/1.8")

What is working

const { NodeosActionReader } = require("demux-eos")

@tiendq
Copy link

tiendq commented Dec 18, 2019

v1.8 is only available in develop branch, while current npm package is v4.0.1 (from master branch).

@tiendq
Copy link

tiendq commented Dec 19, 2019

I just tried it today for our project, you could use the latest (but not officially released) version [email protected] then const {NodeosActionReader} = require("demux-eos/v1.8") works nicely.

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

2 participants