Question: component is part of the declarations of 2 modules error?
Answer: Error: Type ... is part of the declarations of 2 (or more) modules: The solution to this problem is pretty simple. If you need to use a component in more than one modules then add it to the exports array of the module that declared it.