Migration scripting and Compose

I am not sure where this topic belongs, but I am writing a migration script to create a page in Compose, following this documentation: CLI tools and Compose | Contentful

I am consistently getting this error using the same script provided in the documentation:

Line 10: “setAnnotations” is not a valid property name for a content type.
8: // assign the AggregateRoot annotation will make this content type
9: // available as a page type in Compose
10: .setAnnotations([‘Contentful:AggregateRoot’]);

Any help would be appreciated.