Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ziaulain opened this issue Jan 12, 2018 · 5 comments
Closed

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

ziaulain opened this issue Jan 12, 2018 · 5 comments

Comments

@ziaulain
Copy link

ziaulain commented Jan 12, 2018

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

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'

@MurhafSousli
Copy link
Owner

@ziaulain when does the error occur? with NgProgressModule or NgProgressRouterModule
Here is a working plunkr https://stackblitz.com/edit/ngx-progressbar-router

@ziaulain
Copy link
Author

The problem seems to be is with the version. I was using some other plugin and was having the same issue. After downgrading the version of the plugin it started working.

@loveneetchahal
Copy link

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

@tonywr71
Copy link

If it is a compatibility issue, can someone please explain the correct way to handle the operators? map, catch, etc

@FOSSKolkata
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants