This is due to the use of async in the Sinek Library.
I've tried with Node 8, 9 and 10, recompiling my node_modules each time.
I've even tried with babel-register (and babel-polyfill), but making it also compile this library:
require('babel-register')({
ignore: filename => !(!/\/node_modules\//.test(filename) || /\/node_modules\/sinek\//.test(filename)),
})
require('babel-polyfill') // both with and without this
const { KafkaStreams } = require('kafka-streams')
But it errors elsewhere:
node_modules/sinek/lib/librdkafka/Health.js:139
return super.createCheck(STATES.UNCONNECTED, MESSAGES.UNCONNECTED);
^^^^^
SyntaxError: 'super' keyword unexpected here
Obviously this prevents me (and possibly further users) from even starting to use this library!
Any help would be greatly appreciated.
InteliJ was using my systems node path (/usr/bin/node) not nvm's node (.nvm/versions/node/v10.1.0/bin/node), so I was still using node 6 not 8, 9, 10 as I thought.
When importing the library with:
I get the following error:
This is due to the use of async in the Sinek Library.
I've tried with Node 8, 9 and 10, recompiling my node_modules each time. I've even tried with babel-register (and babel-polyfill), but making it also compile this library:
But it errors elsewhere:
Obviously this prevents me (and possibly further users) from even starting to use this library! Any help would be greatly appreciated.