You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
@bigant63 You have to up your compilation target to at least es2017 to get this to work. The greenlet Worker module does not have the emitted helper functions, nor the tslib import. So you have to make sure, that the async/await code is not transpiled down to <=es2016 code.
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
console.log('func======', getPost());
Thanks
Anthony
The text was updated successfully, but these errors were encountered: