Picture of Łukasz Grela
Authoring tool - no Adapt.css or adapt.min.js
by Łukasz Grela - Tuesday, 7 April 2015, 1:11 PM
 

I've created simple test course, and tried to build it but the ZIP produced is without the adapt.css, and the console says: Uncaught Error: Script error for: adapt.min

During the preview I have the Uncaught SyntaxError: Unexpected token < error in console

Picture of Łukasz Grela
Re: Authoring tool - no Adapt.css or adapt.min.js
by Łukasz Grela - Wednesday, 8 April 2015, 7:47 AM
 

This is grunt console log:

info: [08 Apr 2015 08:15:48 +01:00] Retrieving JSON
info: [08 Apr 2015 08:15:48 +01:00] All assets processed
info: [08 Apr 2015 08:15:48 +01:00] 3.1. Ensuring framework build exists
info: [08 Apr 2015 08:15:48 +01:00] 3.2. Using theme: adapt-contrib-vanilla
info: [08 Apr 2015 08:15:48 +01:00] 3.3. Using menu: adapt-contrib-boxMenu
info: [08 Apr 2015 08:15:48 +01:00] grunt server-build --outputdir=courses\551d4
0f340a320bc247bfbbc\5524d4ddef08ee5426af1b08 --theme=adapt-contrib-vanilla --men
u=adapt-contrib-boxMenu
error: [08 Apr 2015 08:16:39 +01:00] exec error: Error: Command failed:
error: [08 Apr 2015 08:16:39 +01:00] Error: Command failed:
error: [08 Apr 2015 08:16:39 +01:00] Error: Command failed:

Picture of Brian Quinn
Re: Authoring tool - no Adapt.css or adapt.min.js
by Brian Quinn - Wednesday, 8 April 2015, 8:15 AM
 

Hi Lukasz,

Can you run the following from the /temp/{tenantId}/adapt_framework/ folder?

grunt server-build --outputdir=courses\551d4
0f340a320bc247bfbbc\5524d4ddef08ee5426af1b08 --theme=adapt-contrib-vanilla --men
u=adapt-contrib-boxMenu

This should provide more useful information on what's going wrong.

Regards,

Brian

Picture of Łukasz Grela
Re: Authoring tool - no Adapt.css or adapt.min.js
by Łukasz Grela - Wednesday, 8 April 2015, 9:09 AM
 

Is there a way of having this kind of command to be executed from within the tool?

It gave me the source of the problem, which was the custom component I've uploaded.

https://github.com/adaptlearning/adapt_authoring/issues/627

I've been able to fix the issues but to see it working I had to remove the course and add new course, and new course is working fine now.

Picture of Brian Quinn
Re: Authoring tool - no Adapt.css or adapt.min.js
by Brian Quinn - Wednesday, 8 April 2015, 2:36 PM
 

Hi Lukasz,

If someone wanted to help out it should be possible to extract the build log and pipe it to the output window.

Re-selecting a theme or menu (actions which trigger a 'full' compile) would have fixed this for you also. 

Regards,

Brian