developit / developit/greenlet

__awaiter is not defined

オープン
#46 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
4.7k
フォーク
97
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。