fs.readFileSync is not a function
95sunny opened this issue · comments
95sunny commented
How do I use "fs" in my browser
Sully D Sheets commented
"file"
mode (using fs
) is for nodejs only. For browser use, you need to pull in data with fetch
or XHR
or FileReader
depending on where the file is stored. The example index.html uses FileReader