Forum Discussion
Angular build showing BrowserModule has already been loaded on browser
vijit-devops if you solved it help me please
- tbsouzaSep 15, 2022Copper Contributor
Asma_Gh
I am facing the same problem. I already checked the BrowserModule and it is only imported on app.module. I don't know how to fix it.- bhaikajuDec 02, 2022
Microsoft
tbsouza: Please remove the import for the BrowserModule from any other module because it is already imported in the AppModule when you create the Angular application. You should only import the CommonModule in all other modules.
Hope it helps!!
- Dee_epFeb 27, 2023Copper Contributor
Got the same error ('Error: BrowserModule has already been loaded...'), and the fix was similar to what bhaikaju mentioned, but I had to remove BrowserAnimationsModule from other modules, since it was already imported in AppModule. So basically, remove that extra module import from from any other module which is already imported in the AppModule.