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

Console error when clicking header - rxjs -> fromEvent is not a function #1423

Closed
saravanaselvan opened this issue May 21, 2018 · 4 comments
Closed

Comments

@saravanaselvan
Copy link

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior
On clicking the header I am getting the below error in the console. Using rxjs 5.5.6

In LongPressDirective fromEvent is imported as below:

import { fromEvent } from 'rxjs';

Instead it should be imported from 'rxjs/observable/fromEvent';

webpack-internal:///./node_modules/rxjs/_esm5/Subscriber.js:249 Uncaught TypeError: rxjs_1.fromEvent is not a function
at LongPressDirective../src/directives/long-press.directive.ts.LongPressDirective.onMouseDown (webpack-internal:///./node_modules/@swimlane/ngx-datatable/release/index.js:5226)
at Object.eval [as handleEvent] (ng:///NgxDatatableModule/DataTableHeaderComponent.ngfactory.js:21)
at Object.handleEvent (webpack-internal:///./node_modules/@angular/core/esm5/core.js:13759)
at Object.handleEvent (webpack-internal:///./node_modules/@angular/core/esm5/core.js:14491)
at dispatchEvent (webpack-internal:///./node_modules/@angular/core/esm5/core.js:10174)
at eval (webpack-internal:///./node_modules/@angular/core/esm5/core.js:10799)
at HTMLElement.eval (webpack-internal:///./node_modules/@angular/platform-browser/esm5/platform-browser.js:2680)
at ZoneDelegate.invokeTask (webpack-internal:///./node_modules/zone.js/dist/zone.js:421)
at Object.onInvokeTask (webpack-internal:///./node_modules/@angular/core/esm5/core.js:4952)
at ZoneDelegate.invokeTask (webpack-internal:///./node_modules/zone.js/dist/zone.js:420)

Expected behavior
No errors in the console

Reproduction of the problem
Click on the Header of the table

What is the motivation / use case for changing the behavior?
No errors in console

Please tell us about your environment:
Windows 8, VS Code, yarn/npm

  • Table version: 12.0.0

  • Angular version: 5.2.5

  • Browser: all

  • Language: [TypeScript 2.5.3 ]

@saravanaselvan
Copy link
Author

Found out the rxjs has to be upgraded to 6.0.0 version. Closing this issue.

@HackPoint
Copy link

@saravanaselvan how do you upgrade the angular5 project where all the dependencies are coupled with rxjs5.5.6?

@saravanaselvan
Copy link
Author

@HackPoint We did not upgrade. Have to live with this issue.

@ankush32112
Copy link

switch to version 11.3.0

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