Picture of Jamie Shepherd
Course grunt build error, orphaned objects
by Jamie Shepherd - Tuesday, 3 June 2014, 8:15 AM
 

Hi, what could the most likely cause of this grunt build error be?

Running "check-json" task
Fatal error: Oops, looks like you have some orphaned objects:

How might I go about troubleshooting, as there doesn't seem to be any more information. Grunt dev works as expected.

Regards,

Jamie

Picture of Jamie Shepherd
Re: Course grunt build error, orphaned objects
by Jamie Shepherd - Tuesday, 3 June 2014, 2:39 PM
 

Cause has been found. Was a component in articles.json!

Picture of Nicola Bamford
Re: Course grunt build error, orphaned objects
by Nicola Bamford - Monday, 9 June 2014, 11:35 AM
 

This actually raises an interesting issue. Could the check-json command be adjusted to identify the line and json file where the issue is occurring (or does it do already...? Afraid I haven't used it yet.)

Picture of Jamie Shepherd
Re: Course grunt build error, orphaned objects
by Jamie Shepherd - Monday, 9 June 2014, 2:08 PM
 

It does not do so already, unless there's a verbose error reporting option/flag I'm not aware of. Would definitely help with troubleshooting, the current error message was a bit vague for me personally - however now I know what it means for the future.