asyncToGenerator.js:6 Uncaught (in promise) undefined :formatted:1 code example
Example: Uncaught (in promise)
The error tells you that there is an error but you don´t catch it. This is how you can catch it:
getAllPosts().then(response => {
console.log(response);
}).catch(e => {
console.log(e);
});