But I am getting the issue: Template parse errors: ‘form-list-item’ is not a known element: 1. If ‘form-list-item’ is an Angular component, then verify that it is part of this module.
I should mention that the forms-list.module is declared and is an an entry component in my app.module - could this by why I am getting this issue?
I want to clarify both answers, it all depends on how you setup your project: either lazy-load or loading everything through the app.module.ts .
If you work the old way - basically in each folder you have only three files ( .ts, .html, .scss w/o .module.ts ) - then you need to first import the componenet in app.module.ts and have it listed under declarations
If you work in lazy load mode ( you have in your folder my-comp-name.module.ts ) then you only need to declare it there ( import it, and list it under declarations )
I swing both ways. Part of the application is lazy loaded and the other part isn’t. I get this problem only when I’m trying to build --prod, never without and the app works just fine. It’s really weird.
Sometimes, after generating a new component, Ionic just gets crazy. You’ve done nothing wrong, and just have to restart the batch job (ctrl + c, and then ionic serve, and voila! Everything magically works