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

web3-bzz has es6 depedencies which don't work with old nodejs versions #1199

Closed
er3es opened this issue Nov 26, 2017 · 2 comments
Closed

web3-bzz has es6 depedencies which don't work with old nodejs versions #1199

er3es opened this issue Nov 26, 2017 · 2 comments

Comments

@er3es
Copy link

er3es commented Nov 26, 2017

My project uses an old version of nodejs. Thus some features of es6 don't work with even with the --harmony flag. When I import web3 in my project I get an error which has to do with some es6 depedencies of web3-bzz:

/node_modules/web3/node_modules/web3-bzz/node_modules/swarm-js/node_modules/fs-extra/lib/index.js:9 
Object.keys(gfs).forEach(key => {
                              ^
SyntaxError: Unexpected token > 
@frozeman
Copy link
Contributor

we Will have a babel compiled version in the upcoming es6 version. This Es6 is in a dependency. I can only suggest adding your own transpileing steps.

@er3es
Copy link
Author

er3es commented Nov 27, 2017

Cheers

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

3 participants