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

CLI: Improve webpack version and add detection of nextjs #18220

Merged
merged 2 commits into from May 18, 2022

Conversation

ndelangen
Copy link
Member

When setting up storybook we try to detect your version of webpack.
We ask the package manager for which version of webpack exists.

In NextJS the webpack dependency isn't managed through the package manager, so the package manager doesn't know.

So I added a check for the version of next itself, if it's version 11 or higher, we start using webpack5.

This can of course be overruled by the user.

@nx-cloud
Copy link

nx-cloud bot commented May 13, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 95a5c80. 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 shilman changed the title Improve webpack version and add detection of nextjs CLI: Improve webpack version and add detection of nextjs May 18, 2022
@shilman shilman merged commit 0a6e347 into next May 18, 2022
@shilman shilman deleted the improve/detection-webpack5 branch May 18, 2022 14:25
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.

None yet

3 participants