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

Examples: Fix build on master #9759

Merged
merged 5 commits into from Feb 6, 2020
Merged

Examples: Fix build on master #9759

merged 5 commits into from Feb 6, 2020

Conversation

ndelangen
Copy link
Member

Issue: https://app.netlify.com/sites/storybookjs/deploys/5e3a8b3054f52300084af24c

The examples aren't building on master, because of some version mismatch with MiniCssExtractPlugin & cra.

What I did

  • I REMOVED the MiniCssExtractPlugin for CRA. It's only giving grief :(

@ndelangen ndelangen added bug cra Prioritize create-react-app compatibility labels Feb 5, 2020
@ndelangen ndelangen self-assigned this Feb 5, 2020
@ndelangen
Copy link
Member Author

@shilman the changes in the lockfile shouldn't affect users.

The snapshots & typings issues are just caused by a minor version bumps of some deps.

The removal of the MiniCSSExtract plugin I did, because I'm tired of that thing breaking.

@ndelangen
Copy link
Member Author

This will make it so the examples on netlify start working

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

N/A

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is removing the CSS minification actually necessary to get this working? If not, can you put it in separate PR? That's a user-facing change on master

@ndelangen
Copy link
Member Author

@shilman I was not able to get it working without disabling the CSSMinificationPlugin :(

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@shilman shilman changed the title FIX master Examples: Fix build on master Feb 6, 2020
@ndelangen ndelangen merged commit 7d5a408 into master Feb 6, 2020
@ndelangen ndelangen deleted the fix/master branch February 6, 2020 13:04
@mtliendo
Copy link

mtliendo commented Feb 18, 2020

--Edit--

Disregard, my issue was due to not importing a global scss file in preview.js 🤦‍♂

Since upgrading to 5.3.13, my scss files are no longer loading and thus my build is breaking. I believe it has something to do with this being removed.

image

Downgrading to 5.3.12 resolves my issue instantly. Additionally, upgrading to 6-alpha breaks the build with the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cra Prioritize create-react-app compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants