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

209
Views
How to use scss modules in Next.js server components

I am trying to implement server components in my Next.js app. I'm using scss modules for styling.

A typical component in my project looks like this:

//MyComponent.client.jsx

import s from './MyComponent.module.scss';

export const MyComponent = ({ props }) => {
return <div id={ s.wrapper }>{ props.stuff }</div>
};

When I change this to: MyComponent.server.jsx

Styling ceases to work, and I don't get any errors.

How can I maintain this functionality in a server component?

about 4 years ago · Juan Pablo Isaza
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!