tsconfig.json's lib is not respected
See original GitHub issueTo reproduce
vscode/settings.json
{
"deno.enable": true
}
tsconfig.json
{
"compilerOptions": {
"noLib": true,
"target": "ES2015",
"module": "esnext",
"lib": ["DOM", "ES2015"],
"strict": true
}
}
a.ts
''.replaceAll('', '');
Expected behavior
replaceAll
should be prohibited.
Actual behavior
Intellisense accepts a.ts
with no error.
Versions
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:
- Created 3 years ago
- Reactions:4
- Comments:11 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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)
You can use a ts reference to the file,
/// <reference path="./dom.lib.d.ts" />
worked for me 😉