Thursday, December 10, 2020

'ion-xxx' is not a known element

Today I used Angular CLI to generate a module in my Ionic App. After that, I added some pages to it. They are for a page with tabs. However, after I wired up everything, the tab page doesn't work. It display the tabs, but not at the right place(bottom). It doesn't navigate at all. In the console, it displays "'ion-tabs' is not a known element" error.


It turned out that I have to manually add IonicModule to the import of the module!





No comments:

Post a Comment