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.

TypeError: page.getStream is not a function

See original GitHub issue

This is my code:

require('puppeteer-stream')
const puppeteer = require('puppeteer')
const fs = require('fs')

const file = fs.createWriteStream('test.webm');

(async () => {
	const browser = await puppeteer.launch();
	const page = await browser.newPage();
	await page.goto('https://example.com');
	const stream = await page.getStream({ audio: true, video: true })
	stream.pipe(file)
})()

Though even with the example code it gives the same error for me

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Feb 13, 2021

@Flam3rboy you could do something like what ghost-cursor does: https://github.com/Xetera/ghost-cursor

1reaction
ghostcommented, Feb 13, 2021

@javimey try installing puppeteer-stream without puppeteer

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why TypeError: stream.on is not a function - Stack Overflow
I have been working on an Angular JS based application. I have written a set of gulp commands to uglify/remove comments from JS...
Read more >
Error page.$$ is not a function · Issue #492 - GitHub
Using page.$$ does not work for me. Although page.$ seems to work. Any explanations? const puppeteer = require('puppeteer'); ...
Read more >
Troubleshooting | Stream Chat - React Native SDK Docs
Stream Chat for React Native relies heavily on context, in instances where the Render Error undefined is not a function occurs it is...
Read more >
Stream | Node.js v19.3.0 Documentation
The node:stream module is useful for creating new types of stream instances. It is usually not necessary to use the node:stream module to...
Read more >
How To Work with Files Using Streams in Node.js - DigitalOcean
Streams are an efficient way to handle files in Node.js. In this tutorial, you'll create a command-line program, and then use it with ......
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