Template parse errors: 'ngx-daterangepicker-material' is not a known element: when using as inline element
See original GitHub issueI have added NgxDaterangepickerMd
to my @NgModule
imports, and using the non-inline mode works fine.
eg.
<input ngxDaterangepickerMd [(ngModel)]="selected" matInput placeholder="Date" [(ngModel)]="value">
However - using it as an inline component doesn’t seem to be working properly:
<ngx-daterangepicker-material (choosedDate)="choseDate($event)">
</ngx-daterangepicker-material>
compiler.js:215 Uncaught Error: Template parse errors:
'ngx-daterangepicker-material' is not a known element:
1. If 'ngx-daterangepicker-material' is an Angular component, then verify that it is part of this module.
2. If 'ngx-daterangepicker-material' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
</section>
[ERROR ->]<ngx-daterangepicker-material (choosedDate)="choseDate($event)">
</ngx-daterangepicker-material>
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Template parse errors: X is not a known element
But when I use my HTML selector I have this error : Template parse errors: 'countries-menu' is not a known element:.
Read more >ngx-daterangepicker-material - npm package - Snyk
We found that ngx-daterangepicker-material demonstrates a positive version release cadence with at least one new version released in the past 3 months. As...
Read more >ngx-daterangepicker-material | Yarn - Package Manager
This Angular Material plugin is compatible with Angular 2+ and is Ivy compatible. It leverages dayjs to handle date manipulation and parsing.
Read more >Template parse errors: : 'xxxComponent' is not a known element
Solved Angular Uncaught Error: Template parse errors : : 'xxxComponent' is not a known element : 3.4K views · 1 year ago ...more ......
Read more >ngx-daterangepicker-material - npm
Angular 9 and 10 date range picker (with material design theme). Latest version: 6.0.4, last published: 3 months ago.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Getting the same issue with angular 9. what is the fix for this?
Thanks heaps 😃 ❤️ 😘