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

TypeScript import of Accounts causes complain of nano-json-stream-parser in a browser #19

Open
miohtama opened this issue Mar 19, 2020 · 0 comments

Comments

@miohtama
Copy link

miohtama commented Mar 19, 2020

Doing a TypeScript import for Account triggers some unwanted side-effects in web browser context. On the Node server-side it is fine.

import { Account } from 'eth-lib/lib'; // https://github.com/MaiaVictor/eth-lib/blob/master/src/account.js

image

As a workaround use JavaScript style import:

const Account = require('eth-lib/lib/account');

Not sure if this should be resolved or is resolvable.

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