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.

Firefox Puppeteer not importing

See original GitHub issue

Steps to reproduce

Tell us about your environment:

  • Puppeteer version: 2.1.1
  • Platform / OS version: MacOS Catalina 10.15.3
  • URLs (if applicable):
  • Node.js version: 12.6.0

What steps will reproduce the problem?

Please include code that reproduces the issue.

  1. import * as puppeteerFirefox from ‘puppeteer-firefox’

What is the expected result? The import should pull in puppeteer-firefox as import puppeteer from 'puppeteer' pulls puppeteer

What happens instead? Could not find a declaration file for module ‘puppeteer-firefox’. ‘/Users/<path>/node_modules/puppeteer-firefox/index.js’ implicitly has an ‘any’ type. Try npm install @types/puppeteer-firefox if it exists or add a new declaration (.d.ts) file containing declare module 'puppeteer-firefox';

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
mjzffrcommented, Apr 20, 2020

Ah, I think the ‘Could not find browser message’ might be a confusing.

If you want puppeteer to download Firefox as part of installation you should run something like PUPPETEER_PRODUCT=firefox yarn add puppeteer@next.

0reactions
mjzffrcommented, Apr 21, 2020

Firefox support is experimental so you will encounter timeouts for features that aren’t supported yet.

If you could share more information about your test suite (link to project?), including debug logs for a Chrome run (e.g. DEBUG=puppeteer:* yarn:test unit) that can help prioritize feature work in Firefox’s remote protocol implementation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how do you install and run puppeteer for firefox - Stack Overflow
I am trying to open a url and I am getting a data URL error in chrome console so I am moving to...
Read more >
How to run Tests in Puppeteer with Firefox - BrowserStack
Puppeteer extended its support to Firefox. Read tutorial on how you can run tests in Puppeteer with the Firefox browser with help of ......
Read more >
Puppeteer causes Firefox to freeze because stdout/stderr ...
Puppeteer causes Firefox to freeze because stdout/stderr pipes are no longer processed.
Read more >
FAQ | Puppeteer
Q: Which Firefox version does Puppeteer use?​. Since Firefox support is experimental, Puppeteer downloads the latest Firefox Nightly when the PUPPETEER_PRODUCT ...
Read more >
puppeteer-firefox - npm
The puppeteer-firefox package will remain available until the transition is complete, but it is no longer actively maintained.
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