Property 'values' does not exist on type 'Map<...>' change the 'lib' compiler option to 'es2015'+

Property 'values' does not exist on type 'Map<string, ReactElement<({ text, colour, valueInstance, maximumInstance, valueParam, maximumParam }: ValueBarProps) => Element, string | JSXElementConstructor<any>>>'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.ts(2550)
Property 'values' does not exist on type 'Map<string, ReactElement<({ text, colour, valueInstance, maximumInstance, valueParam, maximumParam }: ValueBarProps) => Element, string | JSXElementConstructor<any>>>'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.ts(2550)
i already changed that but the compiler doesn't recognize my changes to tsconfig! tsconfig.json (changes made)
"target": "es2024",
"lib": ["ES2024"]
"target": "es2024",
"lib": ["ES2024"]
I have tried resolving this issue by restarting the VSC typescript server
3 Replies
Unreal
UnrealOP2mo ago
I want the intelisense and the robloxts compiler to recognize these changes
Solution
DevMarco
DevMarco2mo ago
Use https://www.npmjs.com/package/@rbxts/object-utils, then Object.values(yourMap)
Unreal
UnrealOP2mo ago
thank you guys

Did you find this page helpful?