-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Move @types/node to dependencies and accept v16 types #16904
Move @types/node to dependencies and accept v16 types #16904
Conversation
Nx Cloud ReportCI ran the following commands for commit e580e39. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
Sent with 💌 from NxCloud. |
app/react/package.json
Outdated
@@ -57,6 +57,7 @@ | |||
"@storybook/react-docgen-typescript-plugin": "1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0", | |||
"@storybook/semver": "^7.3.2", | |||
"@storybook/store": "6.5.0-alpha.1", | |||
"@types/node": "^14.14.20", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^14.14.20 || ^16.0.0
? And move @types/node
to dependencies for other packages too?
See https://github.com/storybookjs/storybook/pull/16894/files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added it for the other relevant packages. I'll keep it as 14 unless we somehow combine these PRs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Methuselah96 thanks so much for this contribution! 🙏
I did a quick spot check and it looks like preact
, html
, and bunch of other app/*
follows the same pattern. Would you mind:
- Updating those packages as well
- Updating the version selector on all of them to include
|| ^16.0.0
, superceding Accept @types/node v16 types #16894
Would love to merge this ASAP!
@shilman Good catch! Updated! |
0ff0aa7
to
adaec7d
Compare
@shilman I think I've finally got the build passing. It took more changes than I anticipated. Not sure why "chromatic" is failing with "Failed to verify your Storybook", but it seems unrelated to this PR. Let me know if there's anything else I can do. |
Looks like a rebuild fixed "chromatic." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Methuselah96 for updating this, and also apologies for the struggles getting CI to pass -- I wish it was faster & easier. At any rate, really appreciate it!
Issue: N/A
What I did
Error I'm trying to fix:
This happens because
app/react/src/client/preview/index.d.ts
ends up referencing@types/node
when compiled:Since other dependent packages already depend on
@types/node
, this shouldn't cause any problems.How to test
If your answer is yes to any of these, please make sure to include it in your PR.