Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #4651
Closed
Open
Issue created Jun 19, 2018 by Administrator@rootContributor

node_modules does not seem to be an included path for Sass in CRA 2.0

Created by: jimbojetlag

I am not sure if this is a bug, or a feature. Apparently, node_modules/ directory is not an included path for Sass in CRA 2.0.

As instructed in #2859 (closed), node_modules/ prefix should be used when importing sass files from libraries. Including this prefix is not conventional in sass projects.

But then, even when using that prefix, libraries that import sass files other libraries will cause the File to import not found or unreadable error.

As an example, using @material/react-top-app-bar:

import 'node_modules/@material/react-top-app-bar/index.scss';

gives the error:

File to import not found or unreadable: @material/top-app-bar/mdc-top-app-bar.
      in node_modules/@material/react-top-app-bar/index.scss (line 1, column 1)
Assignee
Assign to
Time tracking