In Typescript, I've got the error "Cannot read property 'replace' of undefined" executing:
const xlsx = XLSX.readFile(fileName);
filename is a path to an existing file; I've read that "readFile is only available in server environments. Browsers have no API for reading arbitrary files given a path, so another strategy must be used." How can I do?
Edit: the file I'm trying to read is an xlsx; it's zipped: does the library have a bug? I'm running xlsx@0.15.1