Forum Discussion
vijit-devops
Jan 08, 2022Copper Contributor
Angular build showing BrowserModule has already been loaded on browser
Hi, I have angular build pipeline at Azure DevOps and it is successfully deployed to the Azure App service. The issue I am facing is while on selecting specific option it is not responding. and ...
tbsouza
Sep 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.
bhaikaju
Microsoft
Dec 02, 2022tbsouza: 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.