Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tsconfig.json's lib is not respected

See original GitHub issue

To reproduce vscode/settings.json

  "deno.enable": true


  "compilerOptions": {
    "noLib": true,
    "target": "ES2015",
    "module": "esnext",
    "lib": ["DOM", "ES2015"],
    "strict": true


''.replaceAll('', '');

Expected behavior

replaceAll should be prohibited.

Actual behavior

Intellisense accepts a.ts with no error.


vscode: 1.49.2 (system setup) e5e9e69aed6e1984f7499b7af85b3d05f9a6883a deno: 1.4.2 extension: 2.3.1 OS: Windows_NT x64 10.0.19041

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

imjamesbcommented, Oct 27, 2020

Same happens for me. Although for me I can’t use the DOM objects at all.

vscode: 1.50.1 deno: 1.4.6 ext: 2.3.2 OS: Mac OS X 10.15.6 (Catalina)

imjamesbcommented, Dec 8, 2020

You can use a ts reference to the file, /// <reference path="./dom.lib.d.ts" /> worked for me 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

"exclude" property of tsconfig.json is not being respected
Here's a heavy handed solution, that ignores all *.d.ts files. I added to compilerOptions : "compilerOptions": { "skipLibCheck": ...
Read more >
Tsconfig.json is not respected - Cocos Forums
Hello. There is a problem with TypeScript projects as tsconfig seems to not be fully respected. Steps to reproduce: Create project from ...
Read more >
@types/sharedworker - npm
The SharedWorker interface represents a specific kind of worker that can be accessed from several browsing contexts, such as several windows ...
Read more >
Documentation - What is a tsconfig.json - TypeScript
The tsconfig.json file specifies the root files and the compiler options ... input files are specified on the command line, tsconfig.json files are...
Read more >
Typescript Service does not respect tsconfig.json when using ...
The problems seems to be connected to my linked library code. in the folder example there should be a symbolic link to ../example-link/src...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found