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

requestElements().map().toPromise() is not a function in Angular 4 #304

Closed
crossRT opened this issue Apr 13, 2017 · 3 comments
Closed

requestElements().map().toPromise() is not a function in Angular 4 #304

crossRT opened this issue Apr 13, 2017 · 3 comments
Labels

Comments

@crossRT
Copy link

crossRT commented Apr 13, 2017

Actually, this error happened on latest ng2-admin which using Angular 4.0.1.
seems like toPromise() already removed from angular/http.

adding import 'rxjs/add/operator/toPromise'; in server.data-source.ts will solve this issue.

@lexzhukov lexzhukov added the bug label Apr 13, 2017
@ameagol
Copy link

ameagol commented Apr 13, 2017

server.data-source.ts or server.data-source.d.ts ?

@lexzhukov
Copy link
Contributor

@crossRT thanks for bug report. Could you try to install the 1.0.4 version of the ng2-smart-table. This bug is fixed.

@crossRT
Copy link
Author

crossRT commented Apr 14, 2017

@lexzhukov yeah, It's fixed. Thanks ya. =D

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

3 participants