Skip to content
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

Update puppeteer dependencies version #15163

Merged
merged 12 commits into from
Jun 30, 2022

Conversation

vmalay
Copy link
Contributor

@vmalay vmalay commented Jun 7, 2021

Issue: Puppeteer dependencies used by @storybook/storyshots-puppeteer is very old. It is 6 major updates late. Following #15079

What I did

@axe-core/puppeteer used the peerDependencies puppeteer version < 9. I updated the puppeteer dependencies to use this same version for @storybook/storyshots-puppeteer.

How to test

  • Is this testable with Jest or Chromatic screenshots? No
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation? No

@nx-cloud
Copy link

nx-cloud bot commented Jun 7, 2021

☁️ Nx Cloud Report

CI is running/has finished running commands for commit ad2e40e. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@shilman
Copy link
Member

shilman commented Oct 21, 2021

@vmalay so sorry for the delay on this. if it's still of interest, can you help me with these CI build errors in addon-storyshots-pupeteer?

src/config.ts(3,3): error TS2305: Module '"../../../../node_modules/puppeteer/lib/types"' has no exported member 'Base64ScreenShotOptions'.
src/config.ts(5,3): error TS2305: Module '"../../../../node_modules/puppeteer/lib/types"' has no exported member 'DirectNavigationOptions'.
src/imageSnapshot.ts(17,31): error TS2322: Type 'string | void | Buffer' is not assignable to type 'string'.
  Type 'void' is not assignable to type 'string'.

@shilman
Copy link
Member

shilman commented Nov 1, 2021

@vmalay any thoughts on the error above? thanks! 🙏

@stale
Copy link

stale bot commented Jan 9, 2022

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!

@stale stale bot added the inactive label Jan 9, 2022
@vidal7
Copy link

vidal7 commented Feb 22, 2022

As I am writing this comment, latest version of Puppeteer is already at 13.4.0

@stale stale bot removed the inactive label Feb 22, 2022
@vmalay
Copy link
Contributor Author

vmalay commented Apr 22, 2022

Hello @shilman, sorry for the late reply.

Puppeteer took the decision to handle their own type since v6. However, it's does not ship all types and break a lot of things related to TS. The type "DirectNavigationOptions" and "Base64ScreenShotOptions" does not exist in it.

I think we have no choice than implementing them ourself or open an issue on puppeteer github. It's fixed now, I manually added the missing types.

@vmalay
Copy link
Contributor Author

vmalay commented Apr 22, 2022

Some tests are still failing, it does not seem related to puppeteer. I would need help on that, @shilman or someone else can take a look, please.

@kftsehk
Copy link

kftsehk commented May 23, 2022

Attempt to include newer version puppeteer as peer dependency or dev dependency is an error during npm i for npm >= 8.6.0, was warning at npm <8.6.0.

The outdated puppeteer version is now a more serious problem than a warning, also breaks production build even if puppeteer is in peer or optional dependency.

npm/cli#4669

Deserves to move this forward.

package.json Outdated Show resolved Hide resolved
# Conflicts:
#	addons/storyshots/storyshots-puppeteer/package.json
#	yarn.lock
@ndelangen ndelangen merged commit f5569ed into storybookjs:next Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants