slara / generator-reveal

Yeoman generator for Reveal.js
MIT License
429 stars 52 forks source link

TypeError: Cannot read property 'push' of undefined #85

Open asbjornu opened 7 years ago

asbjornu commented 7 years ago

When doing yo reveal:slide "4.DAG" --markdown, it fails with the following error:

TypeError: Cannot read property 'push' of undefined
    at SlideGenerator.module.exports.SlideGenerator.writing (/Users/bitbear/.nvm/versions/node/v6.9.1/lib/node_modules/generator-reveal/slide/index.js:83:13)
    at Object.<anonymous> (/Users/bitbear/.nvm/versions/node/v6.9.1/lib/node_modules/generator-reveal/node_modules/yeoman-generator/lib/index.js:417:23)
    at /Users/bitbear/.nvm/versions/node/v6.9.1/lib/node_modules/generator-reveal/node_modules/run-async/index.js:25:25
    at /Users/bitbear/.nvm/versions/node/v6.9.1/lib/node_modules/generator-reveal/node_modules/run-async/index.js:24:19
    at /Users/bitbear/.nvm/versions/node/v6.9.1/lib/node_modules/generator-reveal/node_modules/yeoman-generator/lib/index.js:418:9
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)

If I change the command to yo reveal:slide "DAG" --markdown, it works. Seems like the 4. in the title blows things up. Weirdly enough, I was unable to reproduce this in a test, so I can't submit a PR with neither a fix nor a failing test. Sorry 😕 .

Ideas what might be causing this?