antonybudianto / angular-starter

:star: Gulp Angular Starter using TypeScript (Updated to 4.4.3)

Home Page:https://antonybudianto.github.io/angular-starter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error after removing Todolist component

opened this issue · comments

Issue Overview

Added new about component and that works fine, but get an browser error after fully removing the Todo component.

Issue Description

Removed Todo component. Updated app.module.ts, nav.html (removed link), app.routing.ts

Reproducables

Removed Todo component. Updated app.module.ts, nav.html (removed link), app.routing.ts and all files that make a reference to the Todo component.

The error I don't seem to get rid of is (error only occurs in the browser, not in the console)

zone.js:461 Unhandled Promise rejection: No ExceptionHandler. Is platform module (BrowserModule) included? ; Zone: ; Task: Promise.then ; Value: Error: No ExceptionHandler. Is platform module (BrowserModule) included?(…)consoleError @ zone.js:461_loop_1 @ zone.js:490drainMicroTaskQueue @ zone.js:494ZoneTask.invoke @ zone.js:426
zone.js:463 Error: Uncaught (in promise): Error: No ExceptionHandler. Is platform module (BrowserModule) included?(…)consoleError @ zone.js:463_loop_1 @ zone.js:490drainMicroTaskQueue @ zone.js:494ZoneTask.invoke @ zone.js:426

Information

| Operating System | Ubuntu |
| Node version | 6.3.0 |
| NPM Version | 3.10.5 |
| Environment | Browser |

Try importing BrowserModule to AppModule/your new module

import { BrowserModule } from '@angular/platform-browser'

@NgModule({
    declaractions: ...,
    imports: [ 
        BrowserModule 
   ]
})
export class AppModule {}

Perfect, thank you!