Closed ckhatton closed 1 year ago
Are you using the latest version of the library?
If you are and are still encountering this issue, try removing the data URI header:
xlsx.read(this.file.url.slice(this.file.url.indexOf(",") + 1));
If updating and applying the patch fails, please reply and we'll try to reproduce the issue.
PS: you can use sheet_to_json
to greatly simplify the data processing.
😃 It was the data URL header it didn't like! 🥳
Thank you so much! 🙏
Hi there
I'm using Nuxt.js.
I have
const xlsx = require('xlsx');
in my script and then passing xlsx the URL data using:It is returning an Array of Objects, but the contents is gobbledygook! 😬
Example:
data[0]
returns...Example.xlsx