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

188
Views
Angular ssr css variables name change issue

Suddenly some of my css variable names on SSR build on server are being changed to something else and not working. For example i have

.color-black-75 {
    color: var(--black-75-color);
}

in my styles.css but when i build project on server in browser it turns to:

enter image description here

i checked out to older commits from 1 month and 2 month ago but this is still happening.

everything works fine when i build project on local ( with docker ) but on server this is preventing some css classes from working.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

First find and replace corrupted classes in *.css with correct classes in dist folder so the project will work fine on server until we find the real issue.

Then if project is being built fine on your local then the issue should be about Package.json package versions or your Dockerfile installed application versions so you can copy your local package-lock.json file to server via scp and then push your local docker image and then pull on server so these issues would be fixed.

The real issue in this case was a package version update which you could find with comparing local package-lock.json with server package-lock.json and then removing ^version and ~versions from package.json and use exact version so over time your packages won't be updated and won't cause any issue.

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!