For whatever reason the callback for fs.promises
is not being called, yet the documentation makes no mention of it only being called if there's an error, which is what I'm assuming would happen...
fsp.writeFile('test.txt', 'callback doesnt work', 'utf8', (error) => {
console.log('callback is never called')
if (error) console.error(error)
})
This is happening (or not happening lol) on version 12.13.0 of Node.
Does anybody know what the deal with this is?