-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Error: cannot await properties of a non object
MetaMemoryT edited this page Feb 4, 2015
·
2 revisions
Error: cannot await properties of a non-object.
The .props method expects to receive an object.
For example:
Promise.props({
pictures: getPictures(),
comments: getComments(),
tweets: getTweets()
}).then(function(result){
console.log(result.tweets, result.pictures, result.comments);
});This happens when a non object value or a promise that resolves with something that is not an object is being passed instead.
What sorcery is this?!
so just dont wwrite cryptic ancient js that nobody knows because turbo doesnt know eitherhttps://github.com/petkaantonov/bluebird.wiki.git
lol ancient Q JS circa 2012 being called up randoml to make a circular logic loom promise that, surprisingly, does not reject itself when it calls itself!
- Dr Q, the other ancient Q https//github.com/drqedwards/ppm