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

[hot]fix broken css module support in prod #4361

Merged
merged 1 commit into from
Apr 27, 2018

Conversation

andriijas
Copy link
Contributor

hot fix missmatch between .dev and .prod making css modules not matched correctly when building for production.

long term fix will be to break out common config to seperate file to avoid missmatch.

@andriijas andriijas added this to the 2.0.0 milestone Apr 25, 2018
@iansu
Copy link
Contributor

iansu commented Apr 25, 2018

Are these CI failures related to these changes? It seems to be failing on building the production bundle.

@andriijas
Copy link
Contributor Author

@iansu not sure, i just noticed the missmatch in the files and backtracked before scss was added.

@Fabianopb can you verify this?

@Fabianopb
Copy link
Contributor

@andriijas I took a look (good catch btw) and it seems to be working fine, I've just tried that in my local instance with the hotfix and the production build is working just fine, css module names are matching.

I'm not sure if this is related to css/sass modules as kitchensink tests passed with node 8 and 9... I've experienced this error ("An error was encountered executing line XYZ") when trying to run e2e tests locally, but it seems they are not working. Could it be that the CI has some bug in the test suite? Is it possible to manually re-run the tests in the CI just in case?

@andriijas
Copy link
Contributor Author

I think the the CI is showing false negative. This is the previous version before sass support:

@andriijas andriijas merged commit cc36849 into facebook:next Apr 27, 2018
@andriijas andriijas deleted the css-module-fix branch April 27, 2018 06:04
kellyrmilligan added a commit to kellyrmilligan/create-react-app that referenced this pull request May 2, 2018
* upstream/next: (35 commits)
  Update envinfo and issue template (facebook#4375)
  Update sass-loader to 7.0.1 (facebook#4376)
  Support package distribution tags (facebook#4350)
  fix broken css module support in prod (facebook#4361)
  Bumped jest version to 22.4.1 (facebook#4362)
  bump babel 7 to beta 46
  bump lint-staged to node 10 compatible version
  documentation: Added License to the README.md (facebook#4294)
  Bump `fsevents`. (facebook#4331)
  Fix typo in e2e-simple.sh comment (facebook#4323)
  Add Sass loader (facebook#4195)
  Fix some typos in README.md (facebook#4286)
  Added learnstorybook.com to Storybook links (facebook#4298)
  Document multiple build environments via `env-cmd` facebook#4071 (facebook#4117)
  Fixed link to CSS imports blog post
  Update CSS Modules localIndetName (facebook#4192)
  Enable loose mode for `class-properties` (facebook#4248)
  bump babel 7 beta (facebook#4253)
  Small typo fix facebook#4217
  Changelog for 1.1.4
  ...
kellyrmilligan added a commit to kellyrmilligan/create-react-app that referenced this pull request May 2, 2018
* next: (35 commits)
  Update envinfo and issue template (facebook#4375)
  Update sass-loader to 7.0.1 (facebook#4376)
  Support package distribution tags (facebook#4350)
  fix broken css module support in prod (facebook#4361)
  Bumped jest version to 22.4.1 (facebook#4362)
  bump babel 7 to beta 46
  bump lint-staged to node 10 compatible version
  documentation: Added License to the README.md (facebook#4294)
  Bump `fsevents`. (facebook#4331)
  Fix typo in e2e-simple.sh comment (facebook#4323)
  Add Sass loader (facebook#4195)
  Fix some typos in README.md (facebook#4286)
  Added learnstorybook.com to Storybook links (facebook#4298)
  Document multiple build environments via `env-cmd` facebook#4071 (facebook#4117)
  Fixed link to CSS imports blog post
  Update CSS Modules localIndetName (facebook#4192)
  Enable loose mode for `class-properties` (facebook#4248)
  bump babel 7 beta (facebook#4253)
  Small typo fix facebook#4217
  Changelog for 1.1.4
  ...
zmitry pushed a commit to zmitry/create-react-app that referenced this pull request Sep 30, 2018
@lock lock bot locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants