contentful-metalsmith icon indicating copy to clipboard operation
contentful-metalsmith copied to clipboard

I'm not sure what is causing the error.

Open lassiter opened this issue 7 years ago • 4 comments

I updated my content type to be 'blogPost' and am now getting split errors when I run 'npm start' in terminal.

You can see the latest version here: https://github.com/lassiter/portfolio-wip/tree/metalsmith-rework and the debug log: https://github.com/lassiter/portfolio-wip/blob/metalsmith-rework/npm-debug.log.

You can see my terminal entry here: https://slack-files.com/T0ANJK399-F4P08H1QA-ac0fbd69ba

lassiter avatar Mar 23 '17 22:03 lassiter

Hi @lassiter, I can see the content_type is different here, shouldn't be blogPost ? the crash is not happening in the plugin btw. the shorten function crashes becuase there is no content.

Khaledgarbaya avatar Mar 24 '17 08:03 Khaledgarbaya

That one should help you :) https://github.com/lassiter/portfolio-wip/pull/1

axe312ger avatar Mar 24 '17 15:03 axe312ger

I fixed the example in the readme -> https://github.com/contentful/contentful-metalsmith/commit/95db056312e8bd11a63375255a68c53575f88fca

axe312ger avatar Mar 24 '17 15:03 axe312ger

@Khaledgarbaya I don't quite understand. So, far I've never been successful getting it to integrate with my space regardless the content type being blogPost or the content type via the hash code (or whatever you call that which you referenced). Getting it up and running with node.js has been the biggest wall that I've yet to surmount.

lassiter avatar Apr 20 '17 19:04 lassiter