Picture of Bret Weinraub
Course Build Errors After Adding Spoor Module
by Bret Weinraub - Friday, 11 November 2016, 3:36 PM
 

 

Using Node 4.2.2 on Ubuntu 14 LTS

Adapt is at commit bbee5b95e34a69c47ec9c6613ce2d21882927599 

    Update version.json

    Bumped to version 0.2.2.

 

First course, first page, ok it works.

Add spoor module, click preview.

Grunt build dies ... error is:

 

Running "javascript:compile" (javascript) task
Fatal error: Error: Module loading did not complete for: core/js/app, plugins, extensions/adapt-contrib-spoor/js/adapt-contrib-spoor, core/js/adapt, extensions/adapt-contrib-spoor/js/adapt-stateful-session, extensions/adapt-contrib-spoor/js/serializers/default, extensions/adapt-contrib-spoor/js/serializers/questions, extensions/adapt-contrib-spoor/js/adapt-offlineStorage-scorm, core/js/offlineStorage
The following modules share the same URL. This could be a misconfiguration if that URL only has one anonymous module in it:
/home/deploy/adapt_authoring/temp/581a4ca885b7457f4812055e/adapt_framework/src/core/js/adapt.js: core/js/adapt, coreJS/adapt
/home/deploy/adapt_authoring/temp/581a4ca885b7457f4812055e/adapt_framework/src/core/js/offlineStorage.js: core/js/offlineStorage, coreJS/offlineStorage
at Function.build.checkForErrors (/home/deploy/adapt_authoring/temp/581a4ca885b7457f4812055e/adapt_framework/node_modules/requirejs/bin/r.js:27411:19)

Picture of Bret Weinraub
Re: Course Build Errors After Adding Spoor Module
by Bret Weinraub - Friday, 11 November 2016, 5:51 PM
 

 

after much hacking, we did

 

    From the adapt_authoring directory, run node upgrade.js and then fire up the node server again.