swimlane / ngx-datatable

✨ A feature-rich yet lightweight data-table crafted for Angular
http://swimlane.github.io/ngx-datatable/
MIT License
4.63k stars 1.67k forks source link

Can't resolve all parameters for ScrollbarHelper errror in ngx-datatable with Angular v8.0.0-rc.0 and above #1693

Closed neetu-pandey closed 5 years ago

neetu-pandey commented 5 years ago

I'm submitting a ... (check one with "x")

[ 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 Cannot launch ngx-datatable v14.0.0 with Angular v8.0.0-rc4. Get the following error:

ERROR Error: Uncaught (in promise): Error: Can't resolve all parameters for ScrollbarHelper: (?). Error: Can't resolve all parameters for ScrollbarHelper: (?).

Expected behavior ngx-datatable should render without the error

Reproduction of the problem https://stackblitz.com/edit/angular8-ngx-datatable

What is the motivation / use case for changing the behavior? ScrollbarHelper class imports DOCUMENT from @angular/platform-browser. This deprecated import has been removed from Angular in v8.0.0-rc.0. DOCUMENT should rather be imported from @angular/core. https://github.com/angular/angular/issues/28117

Please tell us about your environment: Windows 10, VSC, npm

bleuscyther commented 5 years ago

i think its in @angular/common

bleuscyther commented 5 years ago

There is a pull request on angular 8: https://github.com/swimlane/ngx-datatable/pull/1690

npm rm @swimlane/ngx-datatable npm install git+https://github.com/zackarychapple/ngx-datatable.git

It seems to work fine for now with ng serve

pedromarce commented 5 years ago

is there an estimated date when the pull request might be merged?

yuveliremil commented 5 years ago

When the pull request would be merged?

marjan-georgiev commented 5 years ago

Released 15.0.0. Please verify.

neetu-pandey commented 5 years ago

This issue is fixed. Thanks.

sridharsivichandran commented 5 years ago

umable to access this URL : https://github.com/zackarychapple/ngx-datatable.git

daniloff200 commented 4 years ago

LOL @zackarychapple, I also can't do it :D :D

daniloff200 commented 4 years ago

@sridharsivichandran you can use latest version of ngx-datable, like 16.0.2 if you face some issue with icons path, check the https://github.com/swimlane/ngx-datatable/issues/1741

zackarychapple commented 4 years ago

Sorry for removing that repo, did not know folks were relying on it. Thank you @daniloff200 for clarifying that the fix has been merged.

jacques-hoventer commented 4 years ago

I still get this error even after uninstalling v 14.x and installing 16.x. I have no idea how to troubleshoot any further than I have.

PS. The ngx-datatable is used in a lazy loaded module, not sure if this makes any difference.

I'm on Angular 8.2.13.

pradosh123 commented 4 years ago

@jacques-hoventer iam having same issue..you got any solution?

pradosh123 commented 4 years ago

I still get this error even after uninstalling v 14.x and installing 16.x. I have no idea how to troubleshoot any further than I have.

PS. The ngx-datatable is used in a lazy loaded module, not sure if this makes any difference.

I'm on Angular 8.2.13.

iam having same issue..you got any solution?

jacques-hoventer commented 4 years ago

I can't actually remember how I resolved this. I've since moved on to a different project, but if it comes back to me, I'll come back to you. Apologies.

Ahmed-Diab commented 4 years ago

i have the same issue any one got solution ?

daniel-van-niekerk commented 3 years ago

Same issue. Angular 11.0 and ngx-datatable 19.0.0.

The table works in a normal component but not in a mat dialog.

notenote087 commented 3 years ago

Same issue. Angular 11.0 and ngx-datatable 19.0.0.

The table works in a normal component but not in a mat dialog.

Same issue :(

Predhin commented 3 years ago

Same issue!

Cafnio commented 3 years ago

Same issue with modals

fincha commented 2 years ago

No solution for datatable in modals yet?