fs.writeFileSync TypeError: lazyErrmapGet is not a function or its return value is not iterable
I faced this issue while using fs.writeFileSync from fs-extra as following inside one of my gulp task :
fs.writeFileSync(
`${docsTarget}/content-list.json`,
JSON.stringify(contentList, null, 4),
{ flag: 'w' },
'utf8'
);
Now I am not able to reproduce it, but want to know what may be the cause for the same!
