Lazy Loading BrowserModule has already been loaded

后端 未结 8 1892
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 08:16

I am trying to implement lazy loading but getting error as following **

ERROR Error: Uncaught (in promise): Error: BrowserModule has already been loaded.

8条回答
  •  无人及你
    2020-11-30 08:58

    This error can occur if you have imported BrowseModule in some child.app module.ts also. Please make sure you import CommonModule in all modules other than app.module as it has browser modules.

提交回复
热议问题