Open kostetskyroma opened 3 years ago
I can confirm to have the same issue
Happens to me too.
for constructor of ViewportRuler in angular 11 the document is require :
constructor(_platform: Platform, ngZone: NgZone,
/** @breaking-change 11.0.0 make document required */
document?: any);
error is for super() method that needs document parameter:
export class NbViewportRulerAdapter extends ViewportRuler {
constructor(platform: NbPlatform, ngZone: NgZone,
protected ruler: NbLayoutRulerService,
protected scroll: NbLayoutScrollService) {
super(platform, ngZone);
}
please change this:
super(platform, ngZone, document);
I am curious if anyone is working on this. what would it take to upgrade to angular 11? is there a plan to update soon? I think in the process this would get fixed. Anyone already working on this?
Temporary fix using patch-package
https://github.com/akveo/nebular/issues/2572#issuecomment-731615605
This problem has been fixed in this version: (but steel in Beta)
so far works as expected! thanks a lot!
Issue type
Issue description
Current behavior: errors after update Angular to 11.0.0
Expected behavior: without errors
Steps to reproduce:
StackBlitz: https://stackblitz.com/edit/nebular-angular11
Other information:
npm, node, OS, Browser