Does not contain "DefaultGameObjectInjectionWorld" ?

Hi,
I am giving ECS a try watching online tutorials here and there to learn. However I reach a problem when the tutorial guides me to create a EntityManager and assign it.

The tutorials ask me to write out :

EntityManager manager = World.DefaultGameObjectInjectionWorld.EntityManager;

But When I write it and save, the console give me back this error-
World’ does not contain a definition for ‘DefaultGameObjectInjectionWorld’

I am using - using.Entities. in namespace.

I follow all the tutorials, I am using the dated version of unity and downloading the packages, burst, entities, jobs, and hybrid renderer. Is there something I am missing?

It was World.Active before, or you need to update the versions from package manager

If you inside ComponentSystem\JobComponentSystem\SystemBase, they have property World which is already an instance of World class. Call you showed is for getting World\EntityManager in MonoBehaviour. In systems, you already have World property and already have EntityManager property, just use them directly.

I am using the most up to date packages. What version would you recommend of each package?

That may be a reason. You need same version of unity as in tutorial. Certain versions of Unity have different compatible package version compatible.