Module not found: Error: Can't resolve 'rxjs/operators'
See original GitHub issueBug 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:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Related StackOverflow Question
npm install rxjs@6 rxjs-compat@6 --save
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.