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
  • #10771
Closed
Open
Issue created Apr 01, 2021 by Administrator@rootContributor

Change `node-sass` to `sass` because `node-sass` is deprecated

Created by: jhxxs

Is your proposal related to a problem?

I build a small demo based on CRA, yet I encountered a problem where some sass features can't work, like @use "sass.string" and some other built-in modules. At first I am using node-sass recommended by CRA documentation. After trying different solutions and reviewing github issues, I found a very efficient way.

配合CRA搭建demo看sass官网文档时发现有些特性不支持,把create-react-app官方文档推荐的node-sass换成sass就ok了。

Describe the solution you'd like

If you want use new features of sass, please remove node-sass module in your CRA project and use sass instead.

npm uninstall node-sass
npm i sass --save

Additional context

Hope CRA documentation would change it or at least append a tip.

Assignee
Assign to
Time tracking