Hi Guys,
Can someone PLEASE help, I am getting this error :
UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
The error is shown on these lines:
const writeMetaData = (_data) => {
fs.writeFileSync(${buildDir}/json/_metadata.json
, _data);
};
fs.writeFileSync(
${buildDir}/json/${_editionCount}.json
,
JSON.stringify(metadata, null, 2)
);
saveMetaDataSingleFile(abstractedIndexes[0]);
Many thanks