-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
asume es module when using top level await #54245
Comments
There’s a template you’re supposed to fill out when you open a new issue. Looks like a duplicate of #37794. |
You can set |
where in vscode? don't have a tsconfig or a jsconfig file |
This issue has been marked as 'Question' and has seen no recent activity. It has been automatically closed for house-keeping purposes. If you're still waiting on a response, questions are usually better suited to stackoverflow or the TypeScript Discord community. |
This comment was marked as off-topic.
This comment was marked as off-topic.
is there a vscode setting for this? |
Since this is top Google hit for the error message, here is how you can get VS Code to chill about TLA when your runtime supports it (e.g.: Bun) and your IDE is holding you back - and all without the dreaded
{
"compilerOptions": {
"module": "ESNext",
"moduleDetection": "force",
"target": "ESNext"
}
} |
I'm faced with this error:
when i have code such as
await 1
it's not always that i import or export something
And i don't really feel like doing and empty
export {}
or adding any tsconfig.json or jsconfig.jsoni have checkJS + allowJs turned on in my vscode settings and the environment it guesses that it's in is sometimes often wrong.
can you just don't assume that it's okey to use top level await.
I want to disable this lint/rule check completely completely... cuz this one is annoying.
The text was updated successfully, but these errors were encountered: