TS2550: Property ‘entries’ does not exist on type ‘ObjectConstructor’. Do you need to change your target library? Try changing the ‘lib’ compiler option to ‘es2017’ or later.
entries报红提示上述错误
提示是错误:Try changing the ‘lib’ compiler option to ‘es2017’ or later.(尝试将“lib”编译器选项更改为“es2017”或更高版本。)
修改lib
在tsconfig.json文件中添加 “lib”: [“ES2021”].
"lib": ["ES2021"]