Migrating from v3 to v4

I am also getting the same error message