webcg-framework icon indicating copy to clipboard operation
webcg-framework copied to clipboard

"<Promise> has no method 'finally'" in CasperCG 2.0.7

Open JonFranklin301 opened this issue 5 years ago • 0 comments

Hi There,

I am using CasparCG 2.0.7 and transitioning templates from flash to HTML. I have found that WebCG v2.6.0 does not work with CasparCG 2.0.7

The PLAY command runs but crashes with the error: "Uncaught TypeError: Object #<Promise> has no method 'finally'"

I believe this is as Promise.prototype.finally() has a minimum version of Chrome 63 however CCG 2.0.7 uses Chromium 33. Reverting to WebCG v2.5.0 resolves this issue and WebCG works as expected.

CasparCG log:

cg 1-1 add 1 html-test 1
[2020-10-13 18:08:07.642] [170744] [info]    Received message from Console: CG 1-1 ADD 1 html-test 1\r\n
#202 CG OK
[2020-10-13 18:08:07.651] [175352] [info]    html[...\HTML-TEST.html] Initialized.
[2020-10-13 18:08:07.671] [175352] [debug]   Executed command: CGCommand
[1013/180807:ERROR:renderer_main.cc(226)] Running without renderer sandbox
[1013/180807:INFO:CONSOLE(285)] "[webcg-framework] version 2.6.0", source: file:///C:/Users/.../lib/webcg-framework.umd.js (285)
[1013/180807:INFO:CONSOLE(145)] "Uncaught TypeError: Object #<Promise> has no method 'finally'", source: file:///C:/Users/.../lib/webcg-framework.umd.js (145)

Thanks for this really useful library, Jon

JonFranklin301 avatar Oct 13 '20 19:10 JonFranklin301