Closed ludgerey closed 8 months ago
Without a proper example with the code, I cannot do much.
Can you try to upload a simple repo with the case?
EDIT: Maybe is because you are trying to assign a type instead of value.
export class EquipmentFactory extends Factory<EquipmentsEntity> {
- protected entity: EquipmentsEntity;
+ protected entity = EquipmentsEntity;
...
}
Sorry, I totally missed that slight difference. This solved it!
When trying to recreate the examples from README, I get a type error.
Factory:
The error:
Of cause I tried wrapping the Entity with
Constructable
, but this results in a runtime error, when used as following:Results in
How to solve this? Is this a bug? At least it varies from the README.
Versions: