Picture of Jason Chui
Template was precompiled with a newer version
by Jason Chui - Tuesday, 15 October 2019, 7:01 AM
 

I updated my Authoring Tool's framework to v4.1.1, and the AT's version is v0.10.0.

After updating the framework, when I try to preview a course, I see the following error in the console:

"Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (>= 4.3.0)."

Please advise as to what to do. How to update the runtime? What is the runtime?

Thanks!

Picture of Matt Leathes
Re: Template was precompiled with a newer version
by Matt Leathes - Tuesday, 15 October 2019, 9:16 AM
 

Hi Jason

It's this issue. It'll be fixed when we release FW v4.4.0, which I'm hoping we can do near the end of this week (this needs fixing first, ideally).

For the moment, you can patch your version by copying handlebars.min.js into your AAT's copy of the framework (into src/core/libraries)

Picture of Jason Chui
Re: Template was precompiled with a newer version
by Jason Chui - Wednesday, 16 October 2019, 6:38 AM
 

Thanks! Got it working already. Looking forward to an update. Great job by the way! This forum gives me a solution within 24 hours =)

Picture of Ailiniyazi Maimaiti
Re: Template was precompiled with a newer version
by Ailiniyazi Maimaiti - Wednesday, 16 October 2019, 6:56 AM
 

Because we have Matt :)

Picture of Martin Kout
Re: Template was precompiled with a newer version
by Martin Kout - Friday, 18 October 2019, 6:26 AM
 

Hello! 

I tried to fix it with Matt's work around and replaced handlebars on following location:
"adapt_framework\src\core\js\libraries\handlebars.min.js"

But it has no effect, the same Error appear, when I start the authoring tool via node server...
Has anyone an idea?

Looking forward for solving this issue :-)

Picture of Matt Leathes
Re: Template was precompiled with a newer version
by Matt Leathes - Friday, 18 October 2019, 9:33 AM
 

If the error appears when you start the authoring tool then I don't think it's at all likely to be this issue.

I can see that the authoring tool also uses handlebars so it's possible that it is running into a similar issue.

Picture of Matt Leathes
Re: Template was precompiled with a newer version
by Matt Leathes - Friday, 18 October 2019, 9:39 AM
 

Yes, it does appear to be a similar issue which looks to have already been fixed, I believe a release is planned for next week but I don't work on the authoring tool side so don't quote me on that ;-)

Picture of Mike Stevens
Re: Template was precompiled with a newer version
by Mike Stevens - Tuesday, 29 October 2019, 3:11 PM
 

Hi I tried replacing the handlebars.js file with the updated one you are linking too. I am using windows 10, framework 4.3.0, AT 10.0.1 and after doing an grunt build I am still getting this issue below. Have I missed something? 

 

Uncaught c {description: undefined, fileName: undefined, lineNumber: undefined, message: "Template was precompiled with a newer version of H…pdate your runtime to a newer version (>= 4.3.0).", name: "Error", …}description: undefinedfileName: undefinedlineNumber: undefinedmessage: "Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (>= 4.3.0)."name: "Error"number: undefinedstack: "Error: Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (>= 4.3.0).↵ at Object.d [as checkRevision] (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/handlebars.min.js:27:9582)↵ at Object.e [as template] (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/handlebars.min.js:27:10788)↵ at d.a.template (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/handlebars.min.js:27:1306)↵ at http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/templates.js:6:52↵ at Object.execCb (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/require.min.js:29:299)↵ at da.check (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/require.min.js:18:50)↵ at da.enable (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/require.min.js:23:58)↵ at da.init (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/require.min.js:16:154)↵ at I (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/require.min.js:13:288)↵ at Object.completeLoad (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/require.min.js:28:93)"__proto__: Error
at Object.<anonymous> (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/handlebars.min.js:27:4783)
at b (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/handlebars.min.js:27:330)
at Object.<anonymous> (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/handlebars.min.js:27:2019)
at b (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/handlebars.min.js:27:330)
at Object.<anonymous> (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/handlebars.min.js:27:1385)
at b (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/handlebars.min.js:27:330)
at Object.<anonymous> (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/handlebars.min.js:27:742)
at b (http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/handlebars.min.js:27:330)
at http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/handlebars.min.js:27:417
at http://localhost:5000/preview/5db73cbd528b372678bff19f/5db8550262a3af371cb6c106/libraries/handlebars.min.js:27:422
d @ handlebars.min.js:27
e @ handlebars.min.js:27
a.template @ handlebars.min.js:27
(anonymous) @ templates.js:6
execCb @ require.min.js:29
check @ require.min.js:18
enable @ require.min.js:23
init @ require.min.js:16
I @ require.min.js:13
completeLoad @ require.min.js:28
onScriptLoad @ require.min.js:29
load (async)
g.load @ require.min.js:34
load @ require.min.js:29
load @ require.min.js:17
fetch @ require.min.js:17
check @ require.min.js:17
enable @ require.min.js:23
enable @ require.min.js:27
(anonymous) @ require.min.js:22
(anonymous) @ require.min.js:7
y @ require.min.js:6
enable @ require.min.js:21
init @ require.min.js:16
(anonymous) @ require.min.js:26
setTimeout (async)
g.nextTick @ require.min.js:32
m @ require.min.js:26
requirejs @ require.min.js:32
loadFoundationLibraries @ scriptLoader.js:109
setupModernizr @ scriptLoader.js:104
checkJQueryStatus @ scriptLoader.js:95
load (async)
loadScript @ scriptLoader.js:45
loadJQuery @ scriptLoader.js:87
setupRequireJS @ scriptLoader.js:82
load (async)
loadScript @ scriptLoader.js:45
(anonymous) @ scriptLoader.js:138
(anonymous) @ scriptLoader.js:140

Picture of Matt Leathes
Re: Template was precompiled with a newer version
by Matt Leathes - Tuesday, 29 October 2019, 4:12 PM
 

Hi Mike

I hope to release FW v4.4.0 (which contains a fix for this issue) in the next 24 hours. Might be easiest to wait until that's done then update to that?

Picture of Mike Stevens
Re: Template was precompiled with a newer version
by Mike Stevens - Tuesday, 29 October 2019, 5:47 PM
 

Thanks Matt! That makes sense.