How to use pdfkit in Electron? I get "fs.readFileSync is not a function" error


I’m havong problems using pdfkit in Electron due to “fs.readFileSync is not a function” … how can i use fs library in Electron? I’ve read that is disable for security reasons, but i would need it to be execute offline.
Thanks in advance and greetins


It might be best for you to share your whole code repository so that anyone who wants to help you can see what you’re trying to do.