Picture of J Sean Geary
grunt build fatal error
by J Sean Geary - Saturday, 9 July 2016, 4:23 PM
 

New to Adapt and trying my first installation. just followed the installation from "Setting up your development environment." Everything seemed to install and was able to create a course. However, received a fatal error when running grunt build command: 

Running "javascript:dev" (javascript) task

Fatal error: Error: Parse error using esprima for file: /Users/jgeary/Desktop/jgeary-course/src/core/js/views/buttonsView.js

Error: Line 141: Unexpected token return

In module tree:

    core/js/app

      components/adapt-contrib-gmcq/js/adapt-contrib-gmcq

        components/adapt-contrib-mcq/js/adapt-contrib-mcq

          core/js/views/questionView

-----------

When running grunt server, nothing but a blank page in the browser...

 

Any help would be greatly appreciated!

 

Picture of Tom Greenfield
Re: grunt build fatal error
by Tom Greenfield - Monday, 11 July 2016, 9:32 AM
 

Hi there,

Apologies for the inconvenience; this bug has now been fixed in the master branch. You may either download the source code manually as a ZIP and replace the buttonsView.js file referred to above, or simply delete your current installation and re-run adapt create course.