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 in node_modules/@ngxs/store/src/of-action.d.ts(1,10): error TS2305: Module '"/Users/workspace/git/proj-web/node_modules/rxjs/Rx"' has no exported member 'OperatorFunction'. #270

Closed
pinalbhatt opened this issue Apr 11, 2018 · 5 comments

Comments

@pinalbhatt
Copy link

pinalbhatt commented Apr 11, 2018

Versions

Node: v9.11.1
NPM: 5.8.0
Angular: 5.2.9
Angular-CLI: 1.7.4
NGXS: 3.0.0-rc.0
rxjs: 5.5.8

* ngxs:3.0.0-rc.0
* @angular/core:5.2.9

Repro steps

Just added

import { NgxsModule } from '@ngxs/store';

in app.module.ts and tried to run ng build

and i get this error:

ERROR in node_modules/@ngxs/store/src/of-action.d.ts(1,10): error TS2305: Module '"/Users/workspace/git/proj-web/node_modules/rxjs/Rx"' has no exported member 'OperatorFunction'.
@amcdnl
Copy link
Member

amcdnl commented Apr 11, 2018

Only works on RX6 OR RX 5 forward compat

@amcdnl amcdnl closed this as completed Apr 11, 2018
@pinalbhatt
Copy link
Author

@amcdnl i am getting this error even after changing rxjs to 5.5.6. ("rxjs": "5.5.6")

@amcdnl
Copy link
Member

amcdnl commented Apr 11, 2018

@pinalbhatt - Sorry try this 5.6.0-forward-compat.3

@pinalbhatt
Copy link
Author

thanks @amcdnl that worked.

@Dercetech
Copy link

Dercetech commented May 4, 2018

Hi @amcdnl,
Indeed it fixes the crash with 3.0.0-rc.4, thanks.

Pardon my nitpicking here, but when checking out your demo stackblitz I see it's still running rxjs 5.5.2.
Has this changed since @ngxs/store 3.0.0-beta.0 ?
Another discussion pointed to using NG 6 & RX 6. Not possible in an Ionic 3.x environment, hence my nitpicking :-)

(btw, it's Jérémie from MC... sending regards ;-) )

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