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

358
Views
angular 12, sass, sin reconocer "@use '~@angular/material' como mat;" y luego "mat.define-typography-config"

Estoy actualizando a Angular 12 desde Angular 11. Durante ng serve , no puedo compilar esto: https://material.angular.io/guide/typography#define-a-level

retroceder

 ./src/custom-theme.scss - Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js): SassError: Invalid CSS after "...typography: mat": expected expression (eg 1px, bold), was ".define-typography-" on line 5 of src/custom-theme.scss >> $custom-typography: mat.define-typography-config( -----------------------^

tema-personalizado.scss

 @use '~@angular/material' as mat; $custom-typography: mat.define-typography-config( $font-family: 'Lato, Helvetica' ); @include mat.core($custom-typography); ...

Mi package.json tiene "node-sass": "^4.14.1",

¿Algunas ideas?

over 4 years ago · Santiago Trujillo
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!