vanthome / winston-elasticsearch

An elasticsearch transport for winston
MIT License
270 stars 131 forks source link

Getting error for node version nvm use v8.9.4 #204

Closed vaibhavpatil-symblai closed 3 years ago

vaibhavpatil-symblai commented 3 years ago

rror: uncaughtException: Unexpected token /Users/vaishnavi/Documents/workspace/prs/conversation-api/node_modules/winston-elasticsearch/node_modules/@elastic/elasticsearch/lib/Helpers.js:75 async scrollSearch (params, options = {}) { ^

SyntaxError: Unexpected token * at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:617:28) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at Object. (/Users/vaishnavi/Documents//node_modules/winston-elasticsearch/node_modules/@elastic/elasticsearch/index.js:28:17) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at Object. (/Users//Documents/workspace/prs/-api/node_modules/winston-elasticsearch/index.js:8:20)

vaibhavpatil-symblai commented 3 years ago

async * scrollSearch (params, options = {}) { if (this[kMetaHeader] !== null) { options.headers = options.headers || {} options.headers['x-elastic-client-meta'] = this[kMetaHeader] + ',h=s' }

vanthome commented 3 years ago

Completely unrelated, this error is not even in this module!

vaibhavpatil-symblai commented 3 years ago

@vanthome thanks for quick reply
this error coming out for nvm v8.9.4, do you require any details from me?

vanthome commented 3 years ago

You are abusing this issue tracker, this is not for asking novice questions.