When you export a module are you listing only the immediate children as dependencies in saveDependentModule or are you including the full dependency tree? To be safe, the whole tree needs to be included.
I was indeed adding only the direct dependencies. It now works correctly when including all transitive dependencies as well.
I've been doing more testing and so far have not met any new problems. Thank you for all the work you've done.