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

1.2K
Visualizações
Angular StackBlitz error: [NoSuchMethodError: method not found: 'write$1' on null]

I am trying to setup a Stackblitz project with Angular Material theming, following the official guide for Angular Material 11 theming.

I created a sass file for the custom theme configuration theming.scss, but when I try to import it into the global styles.scss file I get the following error in StackBlitz:

Error in src/styles.scss
NoSuchMethodError: method not found: 'write$1' on null

The project doesn't run, you can test it from the link above, can you tell me what is wrong my configuration? Thank you.

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

0

The problem

Today I opened an old project that I'm sure worked fine. I got the same error.

That's how I found this question 😅...

I think the problem is the builder under the hood.

I think it doesn't use versions of Angular and Sass matching your package.json.

The solution

The way to bypass entirely the issue is using a webcontainer version (the recent Node.js project) of stackblitz. That way it compiles using your real dependencies. Here's a blitz you can fork

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