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.

Cannot read property 'newPage' of undefined

See original GitHub issue

Hello,

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:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
karanrajpal14commented, Apr 16, 2020

Yes the issue is fixed now. Thank you!

0reactions
leonardiwagnercommented, Apr 15, 2020

thanks for the feedback!

Read more comments on GitHub >

github_iconTop 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 >

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