-
-
Notifications
You must be signed in to change notification settings - Fork 744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] TypeScript issues with puppeteer v7 ("no exported member" error, etc) #428
Comments
@davidbielik puppeteer has broken typings in recent versions, just look at this mess: Solution: Use Longer answer: It's painful to see that puppeteer broke perfectly fine typings through Even without using -extra you will see TypeScript issues with puppeteer@7 |
Just to track some issues regarding the upstream puppeteer typing issues: |
Yeah it's a real tragedy. Of 100 types the To burn through 3 major versions in a matter of a month is not something you see everyday... |
100% agree. It's really painful to the point where I halted the #303 release until they sorted this out. |
Was this ever confirmed to work? It's still completely broken 😢 I tried v5.0.0 and v5.5.0 |
I've been working with |
I realised what the issue was, this package (at least on that version) doesn't appear to have complete coverage of passing through the types provided by I was wrong, it was just some types that didn't work through the |
@PairedPrototype can you provide an example? of your fix? Should i import puppeteer extra and cast somehow? |
@miramardesign Hey, sorry for the delayed reply. I've created a working minimal-ish example repo showing how I used the package to achieve my goal. I hope it helps 🙂 |
still problems with typescript and puppeteer 10.1.0? |
This should now be fixed through #555:
|
Describe the bug
Minimum Reproducible Code
npm install
tsc
Expected: typescript compiles
Actual: lots of "namespace has no exported member" errors
This is just from importing the library. When I have actual puppeteer code i get many more errors for lots of other un-exported modules.
Code Snippet
Versions
The text was updated successfully, but these errors were encountered: