question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

args.every is not a function

See original GitHub issue

Hi @tungs, When starting my server using js file, this error occurs. Kindly know me what argument i missed in it.

const timecut = require('timecut');
const fs = require('fs');
timecut({
  headless: false,
  frameCache : true,
  launchArguments : '--no-sandbox --allow-http-screen-capture --disable-setuid-sandbox --single-process',
  url: 'localurl/video',
  timeout: 10000,
  viewport: {
    width: 800,               // sets the viewport (window size) to 800x600
    height: 600
  },
  selector: '#myCanvas',     // crops each frame to the bounding box of '#container'
  left: 20, top: 40,          // further crops the left by 20px, and the top by 40px
  right: 6, bottom: 30,       // and the right by 6px, and the bottom by 30px
  fps: 30,                    // saves 30 frames for each virtual second
  duration: 20,               // for 20 virtual seconds 
  output: 'video.mp4'         // to video.mp4 of the current working directory
}).then(function () {
  console.log('Done!'); 
}).catch(function(e) {
  console.log(e);
})

Cc: @varunarora

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
escully27commented, Jun 19, 2022

Thank you - I would love to run on server too but have only used JS on frontend. Do you have any references or tips on how to do this ? Really appreciate it.

0reactions
nguyenhongphat0commented, Jun 19, 2022

You can build a node.js service (I used express.js and bull queue) and host it on Heroku to process timecut, then call the service from your Django server (using REST API)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is .every() not a function? - Stack Overflow
No, it's just jQuery object. jQuery objects are very array-like, but they aren't arrays. Worse, they have some array-like methods (such as ...
Read more >
How to solve every is not a function in JavaScript - Reactgo
The “every is not a function” error occurs, when we call a every() method on a value which is not array. To fix...
Read more >
TypeError: array.every is not a function #21 - GitHub
When running npm t i get the "TypeError: array.every is not a function" error. My code is very similar to yours.
Read more >
Array.prototype.every() - JavaScript - MDN Web Docs
The every() method tests whether all elements in the array pass the test implemented by the provided function. It returns a Boolean value....
Read more >
How to Handle JavaScript Uncaught TypeError: “x” is Not a ...
The Javascript error TypeError: "x" is not a function occurs when there is an attempt to call a function on a value or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found