Picture of Anthony Otyehel
Adapt v2 isn't building
by Anthony Otyehel - Tuesday, 6 September 2016, 11:47 AM
 

It has been a while since I last worked with Adapt. So have created a course using the instructions on GitHub, and got to the 'grunt build' and 'grunt server' - but all I see is a blank screen with a small button.

There are 2 errors in the console:

index.html:17

GET http://dev.hydration-GET http://dev.hydration-quiz.com/build/libraries/modernizr.js 

index.html:18

GET http://dev.hydration-quiz.com/build/adapt/js/scriptLoader.js 404 (Not Found)

Any ideas?

 

Noticed this in terminal:

 

Running "handlebars:compile" (handlebars) task

>> Destination not written because compiled files were empty.

>> 0 files created.

 

Even though the src/course/en/ has json files in it that have content defined.

 

 

Picture of Matt Leathes
Re: Adapt v2 isn't building
by Matt Leathes - Tuesday, 6 September 2016, 1:24 PM
 

Hi Tony

From the URLs above it doesn't look like you're running the course from the server that the $ grunt server command creates - the URL that generates is http://localhost:9001/

It should automatically open the course at that URL in your default browser - but it looks to me like that's not working at the moment - on Windows anyway, seems fine on OS X. Will investigate. For the moment, just manually enter the URL.

Picture of Anthony Otyehel
Re: Adapt v2 isn't building
by Anthony Otyehel - Tuesday, 6 September 2016, 3:57 PM
 

Hi Matt, thanks for the response. I was running MAMP, and have also tested on localhost, but still came up a blank. Not sure how to debug this as a lot of the files in the build folder are missing, no libraries or assets folder - so no surprise that nothing is rendering.

 

Picture of Anthony Otyehel
Re: Adapt v2 isn't building
by Anthony Otyehel - Tuesday, 6 September 2016, 4:21 PM
 

OK - I have tracked down my issue, sort of. I created a new user and built from there - and all was fine. I assume that I have an issue with some of the dependencies installed on my other user. So will need to check through and make sure all is up to date.

Thought it should be logged as a way to test on OSX if there are issues for other users.

Picture of Anthony Otyehel
Re: Adapt v2 isn't building
by Anthony Otyehel - Tuesday, 6 September 2016, 5:12 PM
 

OK - so the crux of my problem was that the folder I was working in was pretty far from my user folder. And some of the folder names had [ ] in them - so I think there were issues with the path.

Once I put the project into a folder at/near the top level of my user folder - with normal folder name - it was fine.

So... probably good to not that the path to the folder you are building should just be made up of normal characters.

As a wise old dev from the Sheffield office said - you live and learn ;)