Skip to content

SCSS doesn't work out of the box on Windows #4940

Closed

Description

Describe the bug
scss is still not working under windows out of the box. We tested it on Linux and it works OK, but with the same config(just initialized) on windows it fails with error You may need an appropriate loader to handle this file type.

Tested in the combination of storybook 4.0.12 and CRA 2.1.1

To Reproduce
Steps to reproduce the behavior:

  1. Initialize new CRA project
  2. Initialize storybook
  3. Rename App.css to App.scss
  4. Create a story for App.js
  5. Run storybook
  6. You see an error You may need an appropriate loader to handle this file type. about scss files and svg import

Expected behavior
Working SCCS and SVG import out of the box

Screenshots
image

Code snippets
If applicable, add code samples to help explain your problem.

System:

  • OS: Windows10
  • Browser: chrome (actually doesn't matter)
  • Framework: react
  • Addons: react-scripts 2.1.1
  • Version: 4.0.12

Additional context
Seems like #4405 doesn't support it properly.

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

Metadata

Assignees

No one assigned

    Labels

    bugcraPrioritize create-react-app compatibilitypresetsreact

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions