Altaba77 / ngx-walkthrough

A walkthrough/on-boarding/tour guide/learning page component which is responsive, dynamic, easy to use
MIT License
8 stars 8 forks source link

Ionic 4 lazy loading #12

Closed amirgh70 closed 4 years ago

amirgh70 commented 5 years ago

Hello I want to know is this module working on Ionic 4 lazy loading project? If the answer is yes I would be thankful to know how? Because I tried this link https://www.npmjs.com/package/ngx-walkthrough and it's instructions, but I get this error:

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. 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.

I really do not know what I should do and I would be grateful if you could help me with this problem. Thanks in advance Amir

Altaba77 commented 5 years ago

Hello, I never tried the lazy loading with ionic 4. I will test this when I will find some time. For start you could try to import common module in your module file in addition of the library.

amirgh70 commented 5 years ago

Thanks bro.

khaukheng commented 4 years ago

Have the same issue with ionic 4 with angular 6 that use lazy loading, adding CommonModule to the lazy loaded module does not help.

Altaba77 commented 4 years ago

Hello,

I fixed the imports, that should solve the problem.

khaukheng commented 4 years ago

Thank you for the prompt response, I'll try again afterward. ☺️

khaukheng commented 4 years ago

It's working.