Typescript error:Object.fromEntries typescript Error
Object.fromEntries
was ES2019, so your lib
option needs to include that (or ES2020). (ESNext is a moving target.)
That said, TypeScript v3.1.1 is fairly old. You may need to upgrade.
- TypeScript version is 3.9
Open tsconfig.json
Add
"target": "esnext","lib": ["esnext", "dom"]