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

Unexpected token error #15

Closed
crazy4groovy opened this issue Jul 11, 2017 · 3 comments
Closed

Unexpected token error #15

crazy4groovy opened this issue Jul 11, 2017 · 3 comments
Labels

Comments

@crazy4groovy
Copy link

c:\Temp\render>usus render --url http://myreactsite.com
C:\Users\me\AppData\Roaming\npm\node_modules\usus\node_modules\bluefeather\dist\map.js:9
const map = async (values, mapper, configuration) => {
                  ^
SyntaxError: Unexpected token (
    at createScript (vm.js:56:10)
. . .

node --version
v6.10.2

Probably just need to define the version of node required (v7+) in the dependencies

@gajus
Copy link
Owner

gajus commented Jul 11, 2017

This should be fixed in https://github.com/gajus/bluefeather.

As a temporary fix, I've increased the required version to v7.

@gajus gajus reopened this Jul 11, 2017
@ryansully
Copy link

Is this due to async keyword? Perhaps babel-plugin-transform-async-to-generator could be added as a dependency? Then Node v6 could be supported.

@gajus
Copy link
Owner

gajus commented Jul 13, 2017

Is this due to async keyword? Perhaps babel-plugin-transform-async-to-generator could be added as a dependency? Then Node v6 could be supported.

Good idea!

I really didn't want to add babel-runtime as dependency, but transforming async to generator is a good solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants