Friday, 3 July 2020

How to resolve Error: TypeError: Cannot read property 'forEach' of undefined?

I have created a rest API using express.js and want to connect Kafka. I'm currently getting the error TypeError: Cannot read property 'forEach' of undefined. I'm not entirely sure why this is. I've posted my code on Stackoverflow(https://stackoverflow.com/questions/62721284/how-to-resolve-error-typeerror-cannot-read-property-foreach-of-undefined)I'm not entirely sure how to overcome this error, particularly since the error is referring to node_modules which is from npm install node-kafka which is properly installed. Any advice would be appreciated.

Submitted July 03, 2020 at 08:42PM by e_n_v

No comments:

Post a Comment