developit / developit/greenlet
__awaiter is not defined
- Lingua principale
- JavaScript
- Stelle
- 4.7k
- Fork
- 97
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I keep getting greenlet.m.js:1 Uncaught (in promise) ReferenceError: __awaiter is not defined. In our project. I've tried changing the complier option values:
"importHelpers": true,
"noEmitHelpers": true,
in our tsconfig file. Has anyone experienced this problem and fixed it?
I'm just trying this in one of our modules
const getPost = greenlet(async () => {
const url = `https://jsonplaceholder.typicode.com/posts`;
const res = await fetch(url);
return await res.json();
});
console.log('func======', getPost());
Thanks
Anthony
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.