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

Differing behaviour on Linux and Windows #32

Closed
cartant opened this issue Jan 29, 2018 · 1 comment
Closed

Differing behaviour on Linux and Windows #32

cartant opened this issue Jan 29, 2018 · 1 comment
Labels

Comments

@cartant
Copy link
Owner

cartant commented Jan 29, 2018

With imports like this:

import { of } from "rxjs/Observable/of";
const observable = of([1, 2]);
observable.subscribe();

The rxjs-no-ignored-subscribe rule effects failures on Windows, but not on Linux. The crux of the problem is that in isType, type.symbol is falsy, so no comparison can be made.

With imports like this:

import { Observable } from "rxjs/Observable";
import "rxjs/add/observable/of";
const observable = Observable.of([1, 2]);
observable.subscribe();

The behaviour is the same on both operating systems and the rule effects errors.

Why this is the case is a mystery, for the moment.

@cartant
Copy link
Owner Author

cartant commented May 14, 2018

Not a bug. It's just a simple case-sensitivity problem with this import:

import { of } from "rxjs/Observable/of";

@cartant cartant closed this as completed May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant