Realm - Property cannot be marked dynamic because its type cannot be represented in Objective-C
List and RealmOptional properties cannot be declared as dynamic because generic properties cannot be represented in the Objective‑C runtime, which is used for dynamic dispatch of dynamic properties, and should always be declared with let.
Learn more in Docs.
So you should declare childComments
this way:
let childComments = List<CommentsModel>()