-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
Fix webpack5 and @storybook/addon-storyshots compatibility error, and a typo #442
Conversation
Hey thanks so much for this contribution 🙏. Just at first glance I'm wondering does the server work with this change for webpack 5? I had some problems when trying this last time. |
Updated patched-react-native-storybook-test to include start storybook scripts: yarn patched-storybook-webpack5:ios starting-patched-storybook-webpack5.mp4 |
@leonardo-fc this is awesome! Thanks for the video :). Though I think maybe we should actually use webpack5 by default and only use webpack4 if its specified |
Agree
|
@storybook/core-server uses webpack5 or webpack4 based on the config file const mainFilePath = path.join(options.configDir, 'main');
fs.writeFileSync('/somewhere/main.js', `
const config = require(${mainFilePath});
config.core ??= { builder: 'webpack5' };
module.exports = config;
`);
options.configDir = '/somewhere'; |
@leonardo-fc unfortunately I can't get this to work in the example project in this repository so I can't validate these changes. Would you be able to get it running with the example project? |
funny enough I was actually able to get it to build moments after sending that... |
@leonardo-fc in future please do your testing in the example project here so that its easier for me to test. I was however able to get this working and its looking good so thanks for figuring this one out. |
Socket Security Pull Request ReportDependency issues detected: If you merge this pull request, you will not be alerted to the instances of these issues again.
|
Package | New Author | Previous Author | Source |
---|---|---|---|
[email protected] (added) | sibiraj-s | danielruf | package.json via @storybook/[email protected], @storybook/[email protected], examples/expo-example/package.json via @storybook/[email protected], @storybook/[email protected] |
Pull request report summary
Issue | Status |
---|---|
Install scripts | ✅ 0 issues |
Native code | ✅ 0 issues |
Bin script confusion | ✅ 0 issues |
Bin script shell injection | ✅ 0 issues |
Shell access | ✅ 0 issues |
Uses eval | ✅ 0 issues |
Unresolved require | ✅ 0 issues |
Invalid package.json | ✅ 0 issues |
HTTP dependency | ✅ 0 issues |
Git dependency | ✅ 0 issues |
GitHub dependency | ✅ 0 issues |
New author | |
Potential typo squat | ✅ 0 issues |
Known Malware | ✅ 0 issues |
Telemetry | ✅ 0 issues |
Protestware/Troll package | ✅ 0 issues |
AI detected malware | ✅ 0 issues |
Bot Commands
To ignore an alert, reply with a comment starting with @SocketSecurity ignore
followed by a space separated list of package-name@version
specifiers. e.g. @SocketSecurity ignore [email protected] bar@*
or ignore all packages with @SocketSecurity ignore-all
@SocketSecurity ignore [email protected]
Powered by socket.dev
How to test the bug and the fix