Topic: Angular/MDB project totally broken
Nicolas Hug free asked 2 years ago
Since today I can't launch my Firebase Angular project as I got this error :
ERROR TypeError: this.el.nativeElement.firstElementChild.firstElementChild is null ngAfterContentChecked ng-uikit-pro-standard.js:8046 Angular 27 callHook callHooks executeInitAndCheckHooks refreshView refreshComponent refreshChildComponents refreshView renderComponentOrTemplate tickRootContext detectChangesInRootView detectChanges tick _loadComponent bootstrap _moduleDoBootstrap _moduleDoBootstrap bootstrapModuleFactory invoke onInvoke invoke run scheduleResolveOrReject invokeTask onInvokeTask invokeTask runTask drainMicroTaskQueue core.js:6185:19 Angular 22 defaultErrorLogger handleError tick invoke run runOutsideAngular tick _loadComponent bootstrap _moduleDoBootstrap _moduleDoBootstrap bootstrapModuleFactory invoke onInvoke invoke run scheduleResolveOrReject invokeTask onInvokeTask invokeTask runTask drainMicroTaskQueue
What I did is rm -rf node_modules and npm install. Nothing special here. Yesterday all was working fine and I was able to view my project on local browser (via firebase serve).
I think we can close this issue. The problem was a ngIf modified by one of my developpers and which hasn't been seen when code review...
But the error is very strange anyway. I still can't understand why it was buggy like that.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 10.1.1
- Device: Desktop
- Browser: Firefox / Chrome
- OS: Ubuntu
- Provided sample code: No
- Provided link: No