I've got this error and YANG cannot be compiled normally.
cannot load module: Not found node "A" in path.: Schema path: /path/.../A/.../target-leaf: Target of leafref "leaf" cannot be referenced because it is disabled.: Schema path: /path/.../A/.../target-leaf
In .yang file, the abstraction of the leaf is below
"""
leaf target-leaf {
require-instance false;
path "/path/.../A/.../target-leaf"
}
According to the spec RFC7950, a target of leafref to be referenced must be enabled when the require-instance property of the leafref is 'false'?