I'm building a web app using React JS with typescript with Epson TM-U220D as the printer. I've done setting everything up, but when I try to run it, it always throws error related to fs. I've checked on my node-module/node and fs is there. Here's how I setup my printing page.
I'm building a web app using React JS with typescript with Epson TM-U220D as the printer. I've done setting everything up, but when I try to run it, it always throws error related to fs. I've checked on my node-module/node and fs is there. Here's how I setup my printing page.
For the code above it throws the error fs.existsSync is not a function . Is it anything to do with the project being build in typescript?