when you convert old code to actual version of Unity change
using Cinemachine;
to
using Unity.Cinemachine;