TypeError: page.getStream is not a function
See original GitHub issueThis 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:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Flam3rboy you could do something like what ghost-cursor does: https://github.com/Xetera/ghost-cursor
@javimey try installing puppeteer-stream without puppeteer