By clicking Sign up for GitHub, you agree to our terms of service and The only reason why a --prod build is working is because your tsconfig is setting enableIvy to false (as recommended by angular for npm published libraries). Does the new module export the components others will need? Angular components are reusable and can be layered inside other components, allowing developers to create sophisticated user interfaces by mixing smaller, simpler components. Welcome to Angular development, where we restart the dev server WAY more than we should have to ^^. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. Would this be the same bug as in this issue or a different bug? Sign in Angular component is not a known element - Stack Overflow But don't forget to add a reference to app.module, or else you'll see this. Please file a new issue if you are encountering a similar or related problem. To display ProductAlertsComponent as a child of ProductListComponent, add the selector, to product-list.component.html. To Reproduce Import the module that hosts the component: export default { title: 'Components/MyComp. AngularJS Tutorial - Learn Programming with Angula Angular 6 Tutorial Learn Angular 6 from Expert Business Analyst Interview Questions and Answers. Content Discovery initiative April 13 update: Related questions using a Review our technical responses for the 2023 Developer Survey, Can't bind to 'ngModel' since it isn't a known property of 'input', Can't bind to 'formGroup' since it isn't a known property of 'form', Angular 2 Routing Does Not Work When Deployed to Http Server, Angular 2 'component' is not a known element, Declaration of directive or component in defferent modules, angular 4, Angular 6 - Could not find module "@angular-devkit/build-angular", routing navigate method not redirecting to targeted component, Core module component and Shared module implementation in angular, Angular 11, js not working after routing in angular. If 'igx-drop-down' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. To learn more, see our tips on writing great answers. The modules are always found within the first folder of the component area. My component choose-popup-data-reference have module (declare and export), which is imported in docName module.