I have the following imports in my "**posts.service.ts**"

```
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { NotFoundError } from '../commons/errors/not-found-error.errors';
import { AppErrors } from '../commons/errors/app-errors.errors';
import { Observable } from 'rxjs';
import { catchError } from 'rxjs/operators';
import 'rxjs/add/observable/throw';

```

I even checked the **node\_modules** folder for 'rxjs/add/observable/throw' and it is available there. But I get a strange error as shown below during project compilation phase.

**ERROR in ./src/app/services/posts.service.ts
Module not found: Error: Can't resolve 'rxjs/add/observable/throw' in '/Users/gauthampughaz/Development/angular/practice/src/app/services'**

**ℹ ｢wdm｣: Failed to compile.**