DjebbZ / revealjs-docpad

Create Reveal.js presentations easily with DocPad.
15 stars 8 forks source link

Installation failures! Oh no! #2

Open kidfribble opened 11 years ago

kidfribble commented 11 years ago

Any help is appreciated!

I'm getting the following errors on installation exclusively with revealjs skeleton:

error: An error occured: 
Error: Couldn't find the selector slideOrder
    at Query.compileSelector (/usr/local/lib/node_modules/docpad/node_modules/query-engine/out/lib/query-engine.js:1499:15)
    at Query.compileQuery (/usr/local/lib/node_modules/docpad/node_modules/query-engine/out/lib/query-engine.js:1604:37)

And a little later:

warning: Something went wrong while rendering: /Users/steventrevathan/Sites/typeplate_test/src/documents/index.html.coffee
error: Something went wrong with the action
error: An error occured: 
TypeError: Cannot call method 'toJSON' of undefined
    at Object.eval (eval at <anonymous> (/Users/steventrevathan/Sites/typeplate_test/node_modules/docpad-plugin-coffeekup/node_modules/coffeecup/lib/coffeecup.js:410:10), <anonymous>:272:43)
    at Object.__cc.render_contents (eval at <anonymous> (/Users/steventrevathan/Sites/typeplate_test/node_modules/docpad-plugin-coffeekup/node_modules/coffeecup/lib/coffeecup.js:410:10), <anonymous>:108:29)
SteveMcArthur commented 11 years ago

The problem seems to be the call to database.findAllLive at the bottom of the docpad.coffee file. At the moment it reads:

database.findAllLive({tags: $has: 'slide', slideOrder: $exists: true},{slideOrder:1})

It should be (note the tags and slideOrder properties):

database.findAllLive({tags: {$has: 'slide'}, slideOrder: {$exists: true}},{slideOrder:1})

Also posted on the docpad issue #414 https://github.com/bevry/docpad/issues/414

jedschneider commented 11 years ago

why was this commit reverted. seems to be the solution for me to get this to run.

SteveMcArthur commented 11 years ago

Sorry - that was me having trouble with git

holmboe commented 10 years ago

This seems to be the case still in the master branch.

ping @SteveMcArthur @DjebbZ