-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Remove weak
dependency for Node 12 compat
#8300
Conversation
This pull request is automatically deployed with Now. Latest deployment for this branch: https://monorepo-git-fix-node-version.storybook.now.sh |
I think we could just lazy install the |
To give some context about |
"some developers" === @ndelangen Just remove the dependency, I'll add it when I need it. |
`node-weak` is not working with Node 12 and so make `yarn bootstrap` command fail. Moreover it is used only for jest related stuff and only affects some developers. The good news is Jest has been working on that and the next release of Jest will certainly get ride of this dependency. See jestjs/jest#8686
ea29850
to
9829441
Compare
weak
dependency from SB
weak
dependency from SB weak
dependency from SB to make it works with Node 12
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.
LGTM!
weak
dependency from SB to make it works with Node 12weak
dependency for Node 12 compat
Issue: #8002
Context
To give some context about weak dependency, it's used only for jest related stuff and only affects some developers. The good news is Jest has been working on that and the next release of Jest will certainly allow us to remove weak from our deps.
See jestjs/jest#8686
What I did
I removed
weak
dependency from SB project.--
OLD DESCRIPTION
This is sadly not a fix for #8002 but a workaround to force dev to use Node <12 as long as the issue with
node-weak
is not fixed.What I did
I updated
engine
property of rootpackage.json
to force node to be between version 8 and 11 asnode-weak
dependency is not working on Node 12: TooTallNate/node-weak#99This node max version can be removed as soon as we found a fix/workaround to
node-weak
and Node 12 incompatibility.