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

268
Visualizações
Does not have 'ɵmod' property errors

I have been stuck on this for a day now.

On a clean repo, after doing an pnpm install, then an ng serve, you end up with this error in the console

...does not have 'ɵmod' property

This can happen with any module and the workaround below work for any module. NOTE: This can also happen if you have imported something other than a Module - there is nothing wrong with my imports in this case.

Workarounds:

  1. restart ng serve or run ng build twice
  2. See ngx-leaflet-draw: Importing module which does not have a ɵmod property (but I couldn't get ngcc to actually do anything - so that doesn't work for me - worth pointing that my repo has multiple projects)

While those workarounds may be adequate for a development environment, in a CI environment, you have to essentially have ng build twice to workaround the issue (which comes at a cost).

My solution in my CI build at the moment is to build twice (Scary to tell a compiler, if you don't get it right the first time, have another go...)

How do you go about finding the root cause of this issue? (So I can have a single ng build step in my CI build).

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

0

The issue for me is that I was using pnpm as package manager. Unfortunately, pnpm doesn't seem to play nicely with ngcc - pnpm uses hard-links in the node_modules folder. I have raised an issue with pnpm.

It turns out that pnpm can also cause the following issues (all fixable by running ng serve or build again):

  • TypeError: Cannot read property 'bindingStartIndex' of null
  • An error occurred during the build: Error: Tried to overwrite ... __ivy_ngcc_bak with an ngcc back up file, which is disallowed
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