this is the code with which the node is giving the error TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of SourceMapGenerator
.then(function (results) {
if (outfile) {
mkdirp.sync(path.dirname(outfile))
fs.writeFileSync(outfile, results.css)
if (results.map) {
fs.writeFileSync(`${outfile}.map`, results.map)
}
if (watch) {
logger.log(`updated ${outfile}`)
}
}
return results
})
if (watch) {
watcher = chokidar.watch(entry)
watcher
.on('add', transform)
.on('change', transform)
.on('unlink', transform)
}
return transform()
}
please resolve this issue i am new so no idea about how to fix this