Topic: MDB in AngularCLI Universal
                                            
                                            Teknomedia
                                     pro                                     asked 8 years ago                                
Prerendering failed because of error: ReferenceError: KeyboardEvent is not defined In ng-mdb-pro/free/carousel/carousel.component.ts, ng-mdb-pro/pro/date-picker/directives/datepickerAutofill.directive.ts Prerendering failed because of error: ReferenceError: Event is not defined In ng-mdb-pro/pro/file-input/directives/mdb-file-drop.directive.ts Prerendering failed because of error: ReferenceError: window is not defined In node_moduleshammerjshammer.js:2643:4But now i found a solution... :) Use Global-JSDom (https://www.npmjs.com/package/global-jsdom) Then i added import 'jsdom-global/register'; on top in app.server.module.ts But I still got an error (not a breaking one):
ERROR TypeError: _this.navbar.nativeElement.append is not a function In ng-mdb-profreenavbarsnavbar.component.ts#61Is it possible to add undefined check on nativeElement? Thanks! / Henrik
                                                    
                                                    Damian Gemza
                                             staff                                             answered 8 years ago                                        
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
 - Premium support: No
 - Technology: MDB Angular
 - MDB Version: -
 - Device: -
 - Browser: -
 - OS: -
 - Provided sample code: No
 - Provided link: No