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
puppeteer-core types differ from puppeteer #6904
Comments
I noticed this too, while trying to upgrade See modernweb-dev/web#1295 (review) for one example where it caused TS compilation errors. |
@jackfranklin as you mentioned that you are going through the types #6979 (comment), could you please check this one too? |
Is there any progress on this? I'd like to use chrome-aws-lambda which uses puppeteer-core with a custom fork of html-pdf-node-ts which uses puppeteer, but I can't reconcile the types of Browser between the two |
We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days. |
This is still an issue. |
This is because |
@luna-fire-dev that'd be our plan but it's not how it was originally set up (when it was JS with no typescript in sight) so it will take some time to untangle it. |
any updates on that? |
That should work in the latest versions as puppeteer-core is a dependency for puppeteer now. |
I'm maintaining the puppeteer add-on ghost-cursor and while upgrading the dependency to puppeteer@7 I noticed some strange differences between
puppeteer
andpuppeteer-core
types. For example thePage
class is not interchangeable:Strange enough I can't find the differences in the generated
types.d.ts
files:$ diff node_modules/puppeteer/lib/types.d.ts node_modules/puppeteer-core/lib/types.d.ts | wc -l 0
Any idea how this can be fixed? I would prefer to keep using puppeteer-core in the library while users most of the time use the regular puppeteer library.
The text was updated successfully, but these errors were encountered: