Try adding the following lib
section to your tsconfig.json
file.
{
"compilerOptions": {
"lib": [
"es2016",
"dom"
]
}
}
More Related Contents:
- Appending .js extension on relative import statements during Typescript compilation (ES6 modules)
- npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself
- Writing npm modules in TypeScript
- “You may need an additional loader to handle the result of these loaders.”
- How do I return the response from an Observable/http/async call in angular?
- How to load external scripts dynamically in Angular?
- Property ‘…’ has no initializer and is not definitely assigned in the constructor
- What is TypeScript and why would I use it in place of JavaScript? [closed]
- Calling webpacked code from outside (HTML script tag)
- Angular: Can’t find Promise, Map, Set and Iterator
- Typescript recursive function composition
- Angular2 component’s “this” is undefined when executing callback function
- Deleting `package-lock.json` to Resolve Conflicts quickly
- Background tasks in Meteor
- What’s the difference between “declare class” and “interface” in TypeScript
- VueJS/Typescript – Cannot find module ‘./components/Navigation’ or its corresponding type declarations
- Cannot invoke an expression whose type lacks a call signature
- Optional chaining on the left side in Javascript
- How to Pass data from child to parent component Angular
- How to translate ‘this’ in D3 JavaScript to TypeScript?
- Server Discovery And Monitoring engine is deprecated
- Typescript: can not access member value in inherited class constructor
- Typescript compiler error when importing json file
- Mocking dayjs extend
- How can I get the Typescript compiler to output the compiled js to a different directory?
- How can I manage client-side JavaScript dependencies? [closed]
- How to check empty object in angular 2 template using *ngIf
- Error: Cannot find module ‘../lib/cli’
- Browser Detection in ReactJS
- Next.js app folder: is there some “entry point”? A direct replacement for _app.tsx?