CHH / jekyll-prismic

Add Prismic.io content to your Jekyll site
MIT License
31 stars 5 forks source link

Undefined Method `ref' for nil:NilClass #6

Open darisi opened 7 years ago

darisi commented 7 years ago

Stumbled upon 2 problems while trying this out.

With the latest 3.4.1 Jekyll I get this:

`Bundler could not find compatible versions for gem "jekyll": In Gemfile: jekyll (= 3.4.1)

jekyll-prismic was resolved to 0.1.1, which depends on
  jekyll (~> 3.0.0)`

And then when I try using Jekyll 3.0.0 I get this one:

jekyll 3.0.0 | Error: undefined methodref' for nil:NilClass`

I know it's been a while since jekyll-prismic has been updated but with the rise of JAMstack popularity and Prismic.io Slices content editing this combo should be quite amazing.

djoos commented 7 years ago

Hi @darisi,

I ran into the same issue - it ended up being the fact that I did have content in Prismic.io, but no collections set up... (settings > collections) The collection you set up there is then used in the jekyll-prismic config.

Re: gem update You could clone the repo in the _plugins folder and that way run it without using the gem. I'm currently doing so for a Jekyll 3.4.3 POC...

Hope this helps!

Kind regards, David

djoos commented 7 years ago

Hmm, using 3.4.3 does throw a Liquid error when using collections; ie. site.prismic.collections.posts: /liquid-3.0.6/lib/liquid/drop.rb:74:ininvokable?': stack level too deep (SystemStackError)`

...so for now I've reverted to Jekyll 3.0.5, which works like a treat! :-)