dtjohnson / xlsx-populate

Excel XLSX parser/generator written in JavaScript with Node.js and browser support, jQuery/d3-style method chaining, encryption, and a focus on keeping existing workbook features and styles in tact.
MIT License
956 stars 183 forks source link

Getting error "TypeError: fs.writeFile is not a function" #367

Open aychaudh opened 5 months ago

aychaudh commented 5 months ago

Hi Team,

I am getting an error, I am working on Vite JSX file and in this code "workbook.toFileAsync" I am getting the below error. Error: "TypeError: fs.writeFile is not a function at xlsx-populate.js?v=fbae0a30:21320:14 at new Promise () at xlsx-populate.js?v=fbae0a30:21319:54"

Attached screenshot for the same. Request you to check the issue.

error 2 Error 1