Module not found: Error: Can't resolve 'rxjs/operators'

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [] question

OS and Version?

Mac os: High sierra 10.13.2

Versions

angular/cdk: 2.0.0-beta.12 angular/cli: 1.5.0 angular/language-service: 4.4.3 angular/material: 2.0.0-beta.12 angular-devkit/build-optimizer: 0.0.33 angular-devkit/core: 0.0.20 angular-devkit/schematics: 0.0.36 ngtools/json-schema: 1.1.0 ngtools/webpack: 1.8.0 schematics/angular: 0.1.5 typescript: 2.3.4 webpack: 3.8.1

Repro steps

Install NgProgressRouterModule

If you need the progress bar to start for navigating between your app routes, add this module

import { HttpModule } from ‘@angular/http’; import { NgProgressModule } from ‘@ngx-progressbar/core’; import { NgProgressHttpModule } from ‘@ngx-progressbar/http’;

@NgModule({ imports: [ … NgProgressModule.forRoot(), NgProgressHttpModule, … ], }) Component in AppComponent template <ng-progress></ng-progress>

The log given by the failure

ERROR in ./node_modules/@ngx-progressbar/core/esm5/ngx-progressbar-core.js Module not found: Error: Can’t resolve ‘rxjs/operators’

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

19reactions
lovesinghchahalcommented, May 11, 2018

npm install rxjs@6 rxjs-compat@6 --save

1reaction
FOSSKolkatacommented, Jan 15, 2019

I came across this issue after upgrading node and npm. Running ng serve would throw this error. I deleted node_modules folder and did an npm install. While running npm install got another set of errors which required me to install ms build tools and to do few system configuration changes. Once the npm install ran successfully, the issue with ng serve also got fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular - can't Resolve rxjs - Stack Overflow
I got this error because of an older version of rxjs and Angular 6 needs the latest version of rxjs. This command installs...
Read more >
how to fix Module not found: Error: Can't resolve 'rxjs ... - GitHub
The issue seems to be rxjs version not compatible with Angular 8.Try running this command once : npm install --save rxjs-compat and see...
Read more >
error: cannot find module 'rxjs' - You.com | The AI Search ...
Try setting the "moduleResolution": "node" inside your compileOptions to specify module resolution strategy for TS. npm install rxjs --save.
Read more >
Module not found: Error: Can't resolve 'rxjs/BehaviorSubject'
I was following an Angular Material tutorial and the author uses BehaviorSubject. I did exactly the same thing but I get an error...
Read more >
rxjs - npm
If you're using RxJS version below 7.2, you can pull in any operator you need from one spot, under 'rxjs/operators' . import {...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found