How can I embed the Foliage module into my project and not get a crash when trying to build Foliage classes?

I want to create a generator of items on the map that will be placed in random order and in order to be able to interact with them more deeply, I wanted to create an item class that will inherit the FoliageActor class and will have all the same charms of this class, and with the ability to add new variables, functions, etc., but when trying to collect the project gives me the same error, here they are: