Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

522
Views
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 answers
Answer question

0

Probably you need to add the underscore in the import:

@import "styles/_config.scss";

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!