BrowserModule has already been loaded Error

I think you are using ‘NoopAnimationsModule’ or ‘BrowserAnimationsModule’,
Which already contain ‘BrowserModule’ and loading your module lazily.
SO the solution is Replace the BrowserModule with ‘NoopAnimationsModule or ‘BrowserAnimationsModule’ in your ‘app.module.ts’.

import { Router } from '@angular/router';
import { AdminsModule } from './admins/admins.module';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
//import { BrowserModule } from '@angular/platform-browser';
import { NgModule,OnInit } from '@angular/core';
import { AppComponent } from './app.component'; 
@NgModule({
    declarations: [
        AppComponent,
    ],
    imports: [
    //BrowserModule,
    NoopAnimationsModule,
    FormsModule
],
    providers: [],
    bootstrap: [AppComponent]
})
export class AppModule {}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)