scenejs-render icon indicating copy to clipboard operation
scenejs-render copied to clipboard

Error: Evaluation failed: TypeError: scene.getIterationCount is not a function

Open viettn24 opened this issue 3 years ago • 2 comments

I start rending with: render -i index.html --name scene -d 30 And I receive this message: Error: Evaluation failed:

Start Rendering Error: Evaluation failed: TypeError: scene.getIterationCount is not a function at puppeteer_evaluation_script:1:7 at ExecutionContext._evaluateInternal (C:\Users\This PC\AppData\Roaming\npm\node_modules@scenejs\render\node_modules\puppeteer\lib\ExecutionContext.js:81:15) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async ExecutionContext.evaluate (C:\Users\This PC\AppData\Roaming\npm\node_modules@scenejs\render\node_modules\puppeteer\lib\ExecutionContext.js:48:12) -- ASYNC -- at ExecutionContext. (C:\Users\This PC\AppData\Roaming\npm\node_modules@scenejs\render\node_modules\puppeteer\lib\helper.js:111:15) at DOMWorld.evaluate (C:\Users\This PC\AppData\Roaming\npm\node_modules@scenejs\render\node_modules\puppeteer\lib\DOMWorld.js:112:20) at processTicksAndRejections (internal/process/task_queues.js:95:5) -- ASYNC -- at Frame. (C:\Users\This PC\AppData\Roaming\npm\node_modules@scenejs\render\node_modules\puppeteer\lib\helper.js:111:15) at Page.evaluate (C:\Users\This PC\AppData\Roaming\npm\node_modules@scenejs\render\node_modules\puppeteer\lib\Page.js:833:43) at Page. (C:\Users\This PC\AppData\Roaming\npm\node_modules@scenejs\render\node_modules\puppeteer\lib\helper.js:112:23) at C:\Users\This PC\AppData\Roaming\npm\node_modules@scenejs\render\dist\render.cjs.js:566:18 at step (C:\Users\This PC\AppData\Roaming\npm\node_modules@scenejs\render\dist\render.cjs.js:190:17) at Object.next (C:\Users\This PC\AppData\Roaming\npm\node_modules@scenejs\render\dist\render.cjs.js:121:14) at fulfilled (C:\Users\This PC\AppData\Roaming\npm\node_modules@scenejs\render\dist\render.cjs.js:74:24) at processTicksAndRejections (internal/process/task_queues.js:95:5)

Please help me to fix

viettn24 avatar Aug 29 '21 16:08 viettn24

@viettn24

Is the scene registered in window(global)?

daybrush avatar Sep 10 '21 11:09 daybrush

I have the same issue, and I have the variable global.

I used a URL (svelte server e.g. http://localhost:5173/video)

I can even call it on the browser. So not sure what happened.

scene

A-ZC-Lau avatar Jan 01 '24 08:01 A-ZC-Lau