Getting TypeError: this is not a typed array using Buffer.from in mocha

前端 未结 3 989
心在旅途
心在旅途 2020-12-17 09:04

I\'m using Mocha / Chai to unit test a library that has recently started using nodejs\' Buffer objects to solve a different problem.

I get this error message in the

3条回答
  •  难免孤独
    2020-12-17 09:38

    There are times when its difficult to update the node version especially if you are using at production so the another solution is

    use "kafka-node": "1.6.2" or lesser

提交回复
热议问题