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

Error on npm start #1

Closed
rajneeshm49 opened this issue Jun 28, 2017 · 2 comments
Closed

Error on npm start #1

rajneeshm49 opened this issue Jun 28, 2017 · 2 comments

Comments

@rajneeshm49
Copy link

Hello,
My node version is 7.10.0 and npm version is 5.0.3
I cloned the repository and inside root folder I ran npm install and npm start.
After that it gives me below error:

node_modules/rxjs/Subject.d.ts(16,22): error TS2415: Class 'Subject' incorrectly extends base class 'Observable'.
Types of property 'lift' are incompatible.
Type '(operator: Operator<T, R>) => Observable' is not assignable to type '(operator: Operator<T, R>) => Observable'.
Type 'Observable' is not assignable to type 'Observable'.
Type 'T' is not assignable to type 'R'.
node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(24,22): error TS2415: Class 'WebSocketSubject' incorrectly extends base class 'AnonymousSubject'.
Types of property 'lift' are incompatible.
Type '(operator: Operator<T, R>) => WebSocketSubject' is not assignable to type '(operator: Operator<T, R>) => Observable'.
Type 'WebSocketSubject' is not assignable to type 'Observable'.
Types of property 'operator' are incompatible.
Type 'Operator<any, R>' is not assignable to type 'Operator<any, T>'.
Type 'R' is not assignable to type 'T'.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] start: tsc && concurrently "npm run tsc:w" "npm run lite"
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@codebubb
Copy link

codebubb commented Jul 4, 2017

Hi @rajneeshm49,

There's an issue with the rxjs extensions working with TypeScript 2.4.1 (see ReactiveX/rxjs#2699)

Simple fix for it is to set the dependency for TypeScript to 2.4.0 or lower in your package.json. For example:

"devDependencies": {
        "@types/node": "^6.0.60",
        "concurrently": "^3.1.0",
        "lite-server": "^2.3.0",
        "typescript": "2.4.0"
    }

I was able to npm start after this. Hope that helps.

@cornflourblue
Copy link
Owner

This has been fixed in RxJS 5.4.2 so no need for a workaround anymore - microsoft/TypeScript#16593 (comment)

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

3 participants