joshbalfour / node-cognitive-services

Microsoft® Cognitive Services SDK for Node.JS
https://www.microsoft.com/cognitive-services
MIT License
105 stars 45 forks source link

Syntax Error #7

Closed IanMoritz closed 7 years ago

IanMoritz commented 7 years ago

I'm running into a syntax error when using spell check

`node_modules/cognitive-services/api/academicKnowledge.js:1 (function (exports, require, module, filename, dirname) { const { ^

SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object. (/node_modules/cognitive-services/api/index.js:2:24) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10)`

haitch commented 7 years ago

I am having same issue.

devsavage commented 7 years ago

This should be fixed if you are using node 6 or higher.

haitch commented 7 years ago

thanks, it does solve my issue.

miparnisari commented 7 years ago

@joshbalfour please mark this as resolved :)