-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels