-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
importHelpers in tsconfig.json #106
Comments
I didn't have a chance to fully investigate why it's happening, but the issue doesn't see to be Quokka specific. If I run const a = () => Promise.resolve('a');
(() => __awaiter(this, void 0, void 0, function* () { return console.log(yield a()); }))();
//# sourceMappingURL=test.js.map |
Have done some investigation - this is by design in TypeScript:
So TypeScript expects these globals for the file because the file does not look like a module to it. If you import/export into/from the file, it'll start working as expected: import 'path';
const a = () => Promise.resolve('a');
(async() => console.log(await a()))(); or const a = () => Promise.resolve('a');
(async() => console.log(await a()))();
export {}; |
@ArtemGovorov seems like what you found out does not help. I still get the error. I am testing out async methods and when i call my long1() method i get the same error.
|
@davvit Could you please
run Quokka, and then run |
Issue description or question
If
tsconfig.json
have config around helper functions,it seems
noEmitHelpers
are honored butimportHelpers
are not, so some of downlevel transpiled helper is not being referenced. Not sure if this specific configuration related or default behavior.Sample code
tsconfif
Sample repository link
If the issue can not be reproduced just using the quokka file above
(for example because it requires/imports some files from your project),
please create a small repository where the issue can be reproduced.
Quokka.js Console Output
Code editor version
[x] Visual Studio Code v1.?
Webstorm v?
Atom v1.?
OS name and version
[x] Windows
OSX
Linux
The text was updated successfully, but these errors were encountered: