Module not found: Error: Can't resolve 'fs'

443 views
Skip to first unread message

Muhammad Anser

unread,
Jun 7, 2017, 12:54:44 AM6/7/17
to bunyan-logging
Hi,

I am using bunyan in my app. I have configured the library as mentioned in document.

- npm i bunyan --save
const bunyan require('bunyan');
-const log = bunyan.createLogger({name: 'my-app'});

But I am getting the issue:
ERROR in ./~/bunyan/lib/bunyan.js
Module not found: Error: Can't resolve 'fs' in '/home/anser/react_projects/my-app/node_modules/bunyan/lib'

Can anyone please help me out of this?
Thanks in advance.
Reply all
Reply to author
Forward
0 new messages