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?
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
Z