adapt_authoring icon indicating copy to clipboard operation
adapt_authoring copied to clipboard

Grunt task failure for Site Preview after new install

Open ScottMRafferty opened this issue 3 years ago • 1 comments

Expected Behaviour

After fresh install, creating a basic course and clicking on the Preview Course button should show a course preview.

Actual Behaviour

Click Preview Course button and error appears in a dialog box stating that the grunt task failed. Node console showing a warning about unexpected character ? after the grunt handlebar task i.e. in the grunt javascript (compile) task.

Resolving Behaviour (in this scenario)

Not sure if this should go in this repo as it may be adapt_framework but I was primarily installing the Authoring tool. After making the following change I was able to get the preview working fine.

Modified the nullish coalescing operator (??) at line 127 to an OR operator (||) in tenant_id/adapt_framework/grunt/tasks/javascript.js.

Someone else may have come across this so I hope this helps. Great tool!

Versions

  • Authoring Tool Version: 0.10.5
  • Framework Version: 5.22.3
  • Node.js Version: 12.16.3
  • MongoDB Version: 3.6.3
  • Operating System: Ubuntu 18.04.4 LTS
  • Browser: Safari 15.6.1

ScottMRafferty avatar Sep 07 '22 17:09 ScottMRafferty

Thanks for this. I was having issues upgrading the framework and this fixed it.

marissa-champions avatar Sep 20 '22 17:09 marissa-champions