node-graphql-server icon indicating copy to clipboard operation
node-graphql-server copied to clipboard

Improve node compatibility

Open marktani opened this issue 6 years ago • 1 comments

The minimum required node version currently is 8+.

If you try to get started with a boilerplate of an older version, you get this:

screen shot 2018-04-03 at 5 06 38 pm

Here are potential improvements compared to the current situation:

  • add a friendly note when the above error occurs, that includes actionable steps to move on (for example link to instructions how to upgrade node version)
  • implement compatibility with older node versions

marktani avatar Apr 03 '18 12:04 marktani

@marktani I would like to take this up. Saw the index.js file inside basic/.install and it seems the problem is because we are using async await which is not supported for lower node versions.

If I have to fix it with promises, should I go ahead? Also how do I test if my solution works or not?

vivek12345 avatar Jun 30 '18 22:06 vivek12345