Cannot perform upm operation: Cannot read property 'map' of undefined [NotFound].See console for more details

Hello, I have a problem, but when I want to refresh the packpage manager in unity, I have an error and how to fix it. I tried to reset the packpage manager but it doesn’t help. help

type error:
Cannot perform upm operation: Cannot read property ‘map’ of undefined [NotFound].See console for more details

[PackageManager] Error Cannot read property ‘map’ of undefined

try update test framework or remove and add again

Same problem. Error message says nothing useful.

Cannot perform upm operation: Cannot read property 'map' of undefined [NotFound]
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Error searching for packages.
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Has Anyone figured this one out?

Update:
first, try removing and adding Test framework package (mentioned by PawelGruntowski in this topic) and if it didn’t help:


I had this problem for any imported project on Unity 2019.4.10f1 and the best solution I found was upgrading the project to another version.
I used Unity 2020.20.7f1 and now the package manager is working properly on the same project
This may be a bug in some of unity 2019 subversions.