Cannot read property 'newPage' of undefined
See original GitHub issueHello,
I’ve been trying to get this to work but I’m unable to. I’m just following along the getting started tutorial and attempting to scrape my own page like so:
const scrapedin = require('scrapedin')
const options = {
email: <email>,
password: <pass>,
}
scrapedin(options)
.then((profileScraper) => profileScraper('https://www.linkedin.com/in/karan-rajpal/'))
.then((profile) => console.log(profile))
.catch(e => console.log(e))
But I get the following error:
➜ node index.js
TypeError: Cannot read property 'newPage' of undefined
at module.exports (/mnt/d/projects/email-automation-node/node_modules/scrapedin/src/openPage.js:14:30)
at module.exports (/mnt/d/projects/email-automation-node/node_modules/scrapedin/src/login.js:6:22)
at module.exports (/mnt/d/projects/email-automation-node/node_modules/scrapedin/src/scrapedin.js:21:13)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Any idea what’s going wrong? Am I doing something wrong?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
TypeError: Cannot read property 'newPage' of undefined #85
When I try to convert my markdown file to PDF I keep getting this error: I have tried to save the file in...
Read more >Puppeteer launcher error results with undefined - Stack Overflow
My package.json appropriately does not specify "module": true . Although I do use ES modules syntax in my TypeScript code, I set ......
Read more >puppeteer-chat/Lobby - Gitter
(node:8546) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toString' of undefined. i tried .valueOf() but it must be possible to turn an ...
Read more >ERROR: Cannot read property 'split' of undefined (Docker ...
Hi, When i run the below code on my local N8N (npm installed) in function node , the code work fine and i...
Read more >Puppeteer | Puppeteer
Puppeteer is a Node.js library which provides a high-level API to control Chrome/Chromium over the DevTools Protocol. Puppeteer runs in headless mode by...
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 FreeTop 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
Top GitHub Comments
Yes the issue is fixed now. Thank you!
thanks for the feedback!