Currently, when you do const { CdxButton } = require( './codex.js' );, but you didn't list CdxButton in the codexComponents array in the module definition, you won't get an error on that line, and you'll eventually get a somewhat confusing error because CdxButton is undefined.
Instead, we would like to throw a clearer error message that makes clear to the developer what they did wrong and how they can fix it. We could accomplish this by wrapping the object returned by CodexModule in a Proxy.