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

Add support for rxjs > 6 #57

Open
inesvanstappen opened this issue May 8, 2018 · 6 comments
Open

Add support for rxjs > 6 #57

inesvanstappen opened this issue May 8, 2018 · 6 comments

Comments

@inesvanstappen
Copy link

When I update my angular project from 5.x to 6.x with rxjs 6.x I get following error:

ERROR in node_modules/ng-socket-io/dist/src/socket-io.service.d.ts(1,10): error TS2305: Module '"..../project/node_modules/rxjs/Observable"' has no exported member 'Observable'.
node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.

@xavierclotet
Copy link

ERROR in ./node_modules/ng-socket-io/dist/src/socket-io.service.js
Module not found: Error: Can't resolve 'rxjs/Observable' in '/home/xavi/Code2/appuser-frontend/node_modules/ng-socket-io/dist/src'
ERROR in ./node_modules/ng-socket-io/dist/src/socket-io.service.js
Module not found: Error: Can't resolve 'rxjs/add/operator/share' in '/home/xavi/Code2/appuser-frontend/node_modules/ng-socket-io/dist/src'

@FriOne
Copy link

FriOne commented May 28, 2018

You can try my fork here

@lukaszgodula
Copy link

Any plans to support NG6 and soon 7?

@pY4x3g
Copy link

pY4x3g commented Dec 27, 2018

It seems that the project is dead...

@hernandohhoyos
Copy link

I replaced the following:

in socket-io.service.js
var Observable_1 = require("rxjs/Observable");
for
var Observable_1 = require("rxjs").Observable;

in socket-io.service.d.ts
import { Observable } from 'rxjs/Observable';
for
import { Observable } from 'rxjs';

and for

Can't resolve 'rxjs/add/operator/share'
npm install --save rxjs-compact

See if that works for them ;)

@Mustang95
Copy link

I replaced the following:

in socket-io.service.js
var Observable_1 = require("rxjs/Observable");
for
var Observable_1 = require("rxjs").Observable;

in socket-io.service.d.ts
import { Observable } from 'rxjs/Observable';
for
import { Observable } from 'rxjs';

and for

Can't resolve 'rxjs/add/operator/share'
npm install --save rxjs-compact

See if that works for them ;)

and for

Can't resolve 'rxjs/add/operator/share'
npm install --save rxjs-compat

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

7 participants