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
When in vscode and "typescript.tsserver.experimental.enableProjectDiagnostics": true, is set, there is the following errors at import.meta.main:
The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'.
Property 'main' does not exist on type 'ImportMeta'.
This happens with almost all extensions disabled except for Deno.
To Reproduce
deno init
code .
Add "typescript.tsserver.experimental.enableProjectDiagnostics": true, to User/settings.json
Run "Deno: Initialize Workspace"
Open main.ts
Expected behavior
Don't show an error.
Versions
vscode: 1.70.2 deno: 1.25.0 extension: 3.13.1
Notes
Obviously, the solution is to add "typescript.tsserver.experimental.enableProjectDiagnostics": false, to .vscode/settings.json, but it took me a while to find the culprit. Is there any way the Deno extension can prevent others from having this issue in the future?
The text was updated successfully, but these errors were encountered:
Describe the bug
When in vscode and
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
is set, there is the following errors atimport.meta.main
:This happens with almost all extensions disabled except for Deno.
To Reproduce
deno init
code .
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
toUser/settings.json
main.ts
Expected behavior
Don't show an error.
Versions
vscode: 1.70.2 deno: 1.25.0 extension: 3.13.1
Notes
Obviously, the solution is to add
"typescript.tsserver.experimental.enableProjectDiagnostics": false,
to.vscode/settings.json
, but it took me a while to find the culprit. Is there any way the Deno extension can prevent others from having this issue in the future?The text was updated successfully, but these errors were encountered: