Produce message to kafka from lambda

i want to produce a message to kafka from lambda-server. I installed Kafka-js(client of kafka for js) using web-pack. i build my code and run it on lambda-server. but i get this error:

You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
lambda_1  | webpack://wepacktut/./node_modules/util/util.js?:109
lambda_1  | if (process.env.NODE_DEBUG) {
lambda_1  | ^
lambda_1  | ReferenceError: process is not defined

Does anyone know how to produce a message from Lambda to Kafka?