The error is a bit misleading because PackedScene was intented to be used from the editor on nodes that you can see in the scene tree dock, which are those that will get saved (i.e packed).
I’m not exactly sure what’s the logic behind the error check, but the doc says this about node ownership:
owner - A node can have any other node as owner (as long as it is a valid parent, grandparent, etc. ascending in the tree). When saving a node (using PackedScene) all the nodes it owns will be saved with it. This allows for the creation of complex SceneTrees, with instancing and subinstancing.
So I guess setting the owner on children you want to save is the right fix.
Also, The More You Know:
By default nodes created dynamically have no owner (or perhaps a different owner?) which is why nodes created by tool scripts in the editor don’t show up and don’t get saved as well. Example: ColorPicker is actually composed of many internal nodes (you can see them if you run a scene with remote scene tree), but these don’t get saved because they are dynamic
hello,
sorry for delay, just some rl issues.
This message is also not an error itself, because project get compiled and runs smoothly,
Being not an error and as you write "By default nodes created dynamically have no owner ", ergo pack() method resets owners itself, so there is no reason to dislpay this message at all.
It is juat the kind of message that have Android exports to get mad.