I am getting client is not a constructor for kafka node

If you go to the github page for that node you will see a number of issues - with no responses -and it hasn't been updated in over a year.