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.

page is not defined

See original GitHub issue

Hi, I’m on jest@25.1.0, when I add your preset and attempt to reference page I get:

    ReferenceError: page is not defined

Do I need any additional configuration in addition to the one in the readme?

I tried to use browser.newPage() but it tells me browser is not defined

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
FezVrastacommented, Feb 4, 2020

This is the whole repository, I’m trying to migrate from Puppeteer to Playwright:

https://github.com/popperjs/popper-core/tree/test/playwright

You can find the Jest configuration in the .config folder.

1reaction
mmarkelovcommented, Feb 4, 2020

@FezVrasta thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

page() is not defined error message - javascript - Stack Overflow
The problem is that page isn't returning a value, so page() is undefined . You would have to write something like this:
Read more >
Page is not defined- nested function · Issue #2311 - GitHub
instead I get an error saying "page is not defined. ... where page (defined in the puppeteer (Node.js) context) is not available.
Read more >
ReferenceError: "x" is not defined - JavaScript - MDN Web Docs
The JavaScript exception "variable is not defined" occurs when there is a non-existent variable referenced somewhere.
Read more >
What is "page title not defined" in the Page titles report? FAQ
A page title is the content of the HTML <title> tag. If your pages do not define this <title> Matomo will instead report...
Read more >
ReferenceError: document is not defined in JavaScript
referenceerror document is not defined. The document relates to the document object which represents a web page that is loaded in the browser....
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