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

Make Wu-Wei Compatible with Older versions of Node #35

Open
wukefe opened this issue Feb 22, 2017 · 3 comments
Open

Make Wu-Wei Compatible with Older versions of Node #35

wukefe opened this issue Feb 22, 2017 · 3 comments

Comments

@wukefe
Copy link
Contributor

wukefe commented Feb 22, 2017

Failed to run the tool with node v4.3.2 on MacOS, however, it worked when node was upgraded to v7.5.0. Another test on Ubuntu found node v6.9.5 worked as well.

Error message

... wu-wei-sable/lib/config.js:160
      let err = validate.errors[0]
      ~~~

SyntaxError: Block-scoped declarations (let, const, function, class) not yet
supported outside strict mode
@elavoie
Copy link
Member

elavoie commented Feb 22, 2017

This is a known issue, I have used newer language constructs from the latest version of JavaScript that require a recent node engine. The package.json file specifies:

"engines" : { "node" : "^6.3.1" }

The minimum version required.

@elavoie elavoie closed this as completed Feb 22, 2017
@elavoie
Copy link
Member

elavoie commented Feb 22, 2017

I am actually reopening the issue and renaming it.

@elavoie elavoie reopened this Feb 22, 2017
@elavoie elavoie changed the title Node version problem Make Wu-Wei Compatible with Older versions of Node Feb 22, 2017
@elavoie
Copy link
Member

elavoie commented Feb 22, 2017

One approach that should not be too hard to use would be to compile all the sources with Babel.

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