Create three metafield definitions for variants in your store's admin: `component_reference`, `component_quantities` and `component_parents`.
Choose Variants, not Products. In each definition below, Namespace and key should say `custom.` followed by the name.
Type the name `component_reference`. As the type choose Product variant, listed under Reference, select List of values, and save.
Choose the type Integer, select List of values, and save.
Choose the type JSON and save.