question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

when update rc5 to rc6, the lazy-load module throw a error

See original GitHub issue

the lazy load module BoardModule need NgIf directives, so I import CommonModule, the AppModule aslo import BrowserModule. then throw below error:

Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead

It is a bug or use fail? thx

  • Angular version: 2.0.0-rc.6
  • Browser: Chrome 52
  • Language: TypeScript 1.8.10

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
doxiaodongcommented, Sep 2, 2016

use BrowserModule in rootModule and others use CommonModule from ‘@angular/common

0reactions
angular-automatic-lock-bot[bot]commented, Sep 9, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BrowserModule has already been loaded Error - Stack Overflow
I'm using lazy loading and my application is broken up in to a lot of lazy loaded modules. However in RC5 everything worked...
Read more >
Lazy-loading feature modules - Angular
A common error when lazy-loading modules is importing common modules in multiple places within an application. Test for this condition by first generating...
Read more >
angular/material2 - Gitter
managed to upgrade everything fine, still having an error: Uncaught Error: ... I have AngularMaterial2 with RC5(soon to be RC6) implemented and it...
Read more >
Issues for Open Social | Drupal.org
Title Status Priority Category Translation field needs to be installed Closed (fixed) Normal Support request The counter on the Group membership is not working Closed...
Read more >
Angular – BrowserModule has already been loaded Error
I'm using lazy loading and my application is broken up in to a lot of lazy loaded modules. However in RC5 everything worked...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found