TypeError: fs.readFileSync is undefined

20 views
Skip to first unread message

Akshay Mehta

unread,
Dec 30, 2017, 4:43:46 AM12/30/17
to node-apn
Hi,

I'm trying to setup APN and using node-pushnotifications wrapper in my project.

I'm getting the following error:

fs.readFileSync is not a function. (In 'fs.readFileSync(value)', 'fs.readFileSync' is undefined)

I followed the exact steps mentioned at https://www.npmjs.com/package/node-pushnotifications

Please help/advise.

Thanks!


Reply all
Reply to author
Forward
0 new messages