Can anyone help me to deserialize the avro file in react? I tried with avsc npm package but I am now stuck on error.
const avro = require('avsc')
......
avro.createFileDecoder('./abc.avro').on('data', (record) => { console.log(record) })
......
but it shows an error.
TypeError: avro.createFileDecoder is not a function
How to solve this???