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
Starting Deno language server...
version: 1.8.0+04740af (release, x86_64-unknown-linux-gnu)
Connected to "Visual Studio Code" 1.53.1
language server initialized
Server ready.
ERROR TSLS = Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:70604:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:70579:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72940:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkNonNullExpression (deno:cli/tsc/00_typescript.js:67851:37)
at checkPropertyAccessExpression (deno:cli/tsc/00_typescript.js:67896:85)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72911:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:72478:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:69000:35)
ERROR TSLS = Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:70604:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:70579:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72940:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkNonNullExpression (deno:cli/tsc/00_typescript.js:67851:37)
at checkPropertyAccessExpression (deno:cli/tsc/00_typescript.js:67896:85)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72911:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:72478:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:69000:35)
ERROR TSLS = Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:70604:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:70579:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72940:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkNonNullExpression (deno:cli/tsc/00_typescript.js:67851:37)
at checkPropertyAccessExpression (deno:cli/tsc/00_typescript.js:67896:85)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72911:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:72478:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:69000:35)
Expected Result
File will be formatted.
The text was updated successfully, but these errors were encountered:
constworker=newWorker(newURL("worker.ts",import.meta.url).href,{type: "module",});worker.postMessage("");// and then type anything will trigger this failure
Thought this was already fixed in #8914?
Using latest deno canary and actual vscode-deno.
Adding a
export {}
to the file helps.Actual Result
Expected Result
File will be formatted.
The text was updated successfully, but these errors were encountered: