Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

524
Visualizações
SassError: Can't find stylesheet to import in React.js project linux OS

I have a react.js project that another developer claims it works fine with his windows 10 OS. But for me when I tried to get the project up and running, I got this error message.

@import "styles/config";

SassError: Can't find stylesheet to import. ╷ 1 │ @import "styles/config"; │ ^^^^^^^^^^^^^^^ ╵
src/components/avatar/avatar.module.scss 1:9 root stylesheet

As far as I understand avatar.module.scss can't import the scss file. This is the folder structure

enter image description here

And in the .env file it has a record

SASS_PATH=./node_modules;./src

I assume this is the case. I think is not working in the Linux environment. I am running React app in normal react script

"start": "react-scripts start",

And the sass version in the package.json is this

"sass": "1.32.8"

How do I fix this and get this project up and running? and also I can't adjust the import statement for something like this @import "../../styles/config"; Because there are so many places and this code already works in the Windows environment.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Probably you need to add the underscore in the import:

@import "styles/_config.scss";

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda