Property 'fromEntries' does not exist on type 'ObjectConstructor'.ts(2339) code example Example: object.fromentries typescript "lib": ["es2018", "dom", "esnext"]