Skip to content

Bug: react-scripts fails to update CSS after error state #10742

Description

@givensuman

This is specifically a problem with the feature of react-scrips that auto-reloads/compiles on save. After creating an error state in the CSS, changes to the CSS no longer appear on save. A manual reload of the app (by clicking reload in the browser) fixes the issue.

React version: 17.0.2

  1. Create new React App with create-react-app command
  2. Create components (i.e. a simple div with some inner text and at least 2 properties)
  3. Style component in CSS and with each save app will reload on browser to display changes
  4. Create an error state in the CSS (i.e. delete a semicolon after a parameter) and save. Fix it and save. App should reload, but CSS changes no longer update on save.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions