Picture of Rachel Page
Adapt framework - error in components.json file
by Rachel Page - Saturday, 12 November 2016, 9:45 AM
 

Hi there, 

I'm quite new to Adapt, and new to the world of coding - so bare with me. 

I'm following along the instructions in creating your first course, I've followed the instructions on adding a page, an article and block, I'm up to adding a simple text component, however I keep receiving an error when I attempt to build the course and preview.

Here is the code I added from the components.json file (copied and pasted from the first component, I just updated the ID's):

Components.json

 Here is the error: 

Error

I've checked and triple checked all my ID's and parent ID's. Not sure where to go next. Any advice would be greatly appreciated

Thanks, 
Rachel

Picture of jPablo Caballero
Re: Adapt framework - error in components.json file
by jPablo Caballero - Saturday, 12 November 2016, 11:12 AM
 

Rachel,

It would be better to see your complete components.json file, but from what I see in your screenshot and error message, I think there's a }  missing just before ].

 

Picture of Matt Leathes
Re: Adapt framework - error in components.json file
by Matt Leathes - Monday, 14 November 2016, 10:31 AM
 

Hi Rachel

If you get JSON errors you can use something like JSONLint to show you exactly where the problem lies