Skip to content

Karma: [web-server]: 404: /base/node_modules/rxjs/operators.js #62

Description

@ersimont

After upgrading to Angular 5 I wanted to follow this recommendation from the upgrade guide:

For each RxJS Operator you import, you should now import from 'rxjs/operators' and use the pipe operator. Read more

In my case, that meant making a couple changes like this:

// import 'rxjs/add/operator/take';
import { take } from 'rxjs/operators';

// this.$.take(1).subscribe((v) => { value = v; });
this.$.pipe(take(1)).subscribe((v) => { value = v; });

I'm not sure how to modify my Karma config to support this change. I'm currently getting a 404 when the browser tries to load a file /base/node_modules/rxjs/operators.js:

02 11 2017 21:46:42.016:WARN [web-server]: 404: /base/node_modules/rxjs/operators.js

Any help would be appreciated - and probably worth updating in this repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions