milantenk / ngx-interactive-paycard

Interactive Angular payment card library.
Other
79 stars 14 forks source link

BrowserModule has already been loaded #28

Closed OxyMonster closed 3 years ago

OxyMonster commented 3 years ago

Please remove BrowserModule import from the library, I use the lazy loading module and I can't remove BrowserModule import from my root module, it will mess the things.

see error below ----->

ERROR Error: Uncaught (in promise): 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.

milantenk commented 3 years ago

Hi OxyMonster, thanks for the remark, I'm going to take a look at it at the weekend.

milantenk commented 3 years ago

Resolved in #29. The 2.0.1 version contains the fix. https://www.npmjs.com/package/ngx-interactive-paycard/v/2.0.1