I would assume an error in your config results in a broken template, which typically gives the “undefined” on your mirror, because the nunjucks template could not be loaded.
Can you post your config of the module?