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

327
Visualizações
getting "Cannot find module 'rxjs-compat/Observable'" but only code requiring it is RXjs itself

error I am getting in console when running an 'ng serve':

module.js:550
    throw err;
    ^

Error: Cannot find module 'rxjs-compat/Observable'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\[USR]\source\repos\[ProprietaryApp]\web\node_modules\rxjs\Observable.js:6:10)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)

Problem: All of my code is updated and using the new reference locations. Here is an example:

import { Subject } from 'rxjs';

I did a search in VSCode of all places that use 'rxjs-compat/Observable' and I found that every single one of them is in node_modules\rxjs or a subfolder of node_modules\rxjs.

RXjsLocations

does RXjs V6 require the compat file? I dont want to use it. The compat file is supposed to be a temporary fix.

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

0

Seems you are using older version (5 or lower) of RxJs. Try installing Rxjs Compat in order to have all imports fixed implicitly:

npm install --save rxjs-compat

Otherwise, you need to change all imports explicitly.

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