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.

[7.0.1] LaunchOptions and Page types are not exported from main

See original GitHub issue

Steps to reproduce

Tell us about your environment:

  • Puppeteer version: 7.0.1
  • Platform / OS version: Fedora 33
  • Node.js version: 14.15.4

What steps will reproduce the problem?

Please include code that reproduces the issue.

import puppeteer from 'puppeteer';
(async () => {
  const launchOptions: puppeteer.LaunchOptions = { devtools: true };
  const browser = await puppeteer.launch(puppeteerConfig);
...
})();

What is the expected result?

Interfaces are available on the namespace. Work the same way it did with @types/puppeteer.

What happens instead?

They are not exposed. I’m sure there are many more. Will write any I notice here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:14
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
thomassuckowcommented, Feb 4, 2021

and CDPSession. I don’t think any of the types are actually being exported.

1reaction
mceachencommented, Feb 9, 2021

In case anyone else was using "@types/puppeteer and now using the built-in types, but wondering why your compile is still broken (even with v7.0.4): know that several type names have changed, like Request is now HTTPRequest, and Response is now HTTPResponse.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Receiving "Attempted import error:" in react app - Stack Overflow
import combineReducers from '../../store/reducers';. since it's a default export, and not a named export. There's a good breakdown of the differences between ...
Read more >
Firepower Management Center Configuration Guide, Version ...
You can export a single configuration, or you can export a set of configurations (of the same type or of different types) with...
Read more >
Migration Guide | Cypress Documentation
Migrating to Cypress 12.0 This guide details the changes and how to change your code to migrate to Cypress version 12.0.
Read more >
Export graphics and videos with Animate CC - Adobe Support
Use this guide to understand how to export graphics and videos in various file formats with Adobe Animate CC.
Read more >
Exporting your site - Squarespace Help Center
Because of how WordPress is designed, it's not possible to import all types of Squarespace content. Our .xml file is primarily set up...
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