Keep getting an error invalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.
Have written code exactly like the instructor has in video.
Vector2 mousePos = Input.mousePosition;
Vector3 playerToScreenPoint = Camera.main.WorldToScreenPoint(mousePos);