How to add a Child Actor Component based on a blueprint that references scripts with relative paths?

Let’s say I have an Avatar blueprint and a few body parts blueprints, like Head, Leg, Arm, etc. To add the body parts to the Avatar blueprint, I can simply open view port of the Avatar blueprint, then drag the body parts from the content browser. Now here’s the problem: one of these body parts is using an OpenCV plugin, which apparently references scripts with paths relative the blueprint, so it can’t find those scripts when it’s inside another blueprint, as a Child Actor Component.

When I add the body part blueprint to the map, in the editor, it works. When I add it as a child component to the Avatar blueprint, at first, it also works. Then, when I close the editor and open it again, it gives me a bunch of loading errors:

Fail to load /Script/OpenCV.WebcamReader Referenced by Billboard_GEN_VARIABLE
Fail to load /Script/OpenCV.WebcamReader Referenced by Billboard
Fail to load /Script/OpenCV.WebcamReader Referenced by K2Node_Event_3
Fail to load /Script/OpenCV.WebcamReader Referenced by K2Node_VariableGet_0
Fail to load /Script/OpenCV.WebcamReader Referenced by K2Node_VariableGet_1
Fail to load /Script/OpenCV.WebcamReader Referenced by K2Node_VariableGet_2
Fail to load /Script/OpenCV.WebcamReader Referenced by K2Node_VariableSet_0
Fail to load /Script/OpenCV.WebcamReader Referenced by PackageMetaData

What am I doing wrong?

Thank you for any help!

Solution: change “LoadingPhase” from “Default” to “PreDefault” at OpenCV.uplugin