question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Template parse errors: 'ngx-daterangepicker-material' is not a known element: when using as inline element

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
mayanksaraswat04commented, May 27, 2020

Getting the same issue with angular 9. what is the fix for this?

0reactions
dwjohnstoncommented, Sep 10, 2018

Thanks heaps 😃 ❤️ 😘

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found