Closed ozum closed 7 years ago
Problem seems to related to mz/fs
. I would open a ticket there.
const fs = require('mz/fs');
let a;
fs.readdir('.')
.then(files => a.invalid)
.catch(console.log);
TypeError: Cannot read property 'invalid' of undefined at fs.readdir.then.files (/Users/ozum/Development/l10n-formatjs/sil.js:9:19)
Same question is asked in #19, but stack trace is missing even for non
fs
related errors whenfs-promise
is used in promise chain:TypeError: Cannot read property 'invalid' of undefined at fs.readdir.then.files (/Users/ozum/Development/l10n-formatjs/sil.js:10:19)
On the other hand
Bluebird
orfs-extra-promise
has stacks: