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

[bug,ci] does not work on node v8.0.0 #58

Open
shouldsee opened this issue Mar 25, 2020 · 0 comments
Open

[bug,ci] does not work on node v8.0.0 #58

shouldsee opened this issue Mar 25, 2020 · 0 comments

Comments

@shouldsee
Copy link

shouldsee commented Mar 25, 2020

though package.json specify node>=8.0.0, the installed cli failed on 8.0.0 with command

$ node -v
v8.0.0
$ npm -v
5.0.0
$ gq
/home/user/.nvm/versions/node/v8.0.0/lib/node_modules/graphqurl/node_modules/graphql-language-service-parser/dist/onlineParser.js:128
    state.prevState = { ...state };
                        ^^^

SyntaxError: Unexpected token ...
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:533:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/user/.nvm/versions/node/v8.0.0/lib/node_modules/graphqurl/node_modules/graphql-language-service-parser/dist/index.js:15:22)

However, the error disappear once switched to node==10.0.0. Should this be reflected somewhere in the CI yaml config?

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