ngx-bootstrap: Can't bind to 'templateUrl' since it isn't a known property of 'datepicker-inner'

Trying to use the DatePicker component, but got the following error:

Error: Uncaught (in promise): Template parse errors:
Can't bind to 'templateUrl' since it isn't a known property of 'datepicker-inner'.
1. If 'datepicker-inner' is an Angular component and it has 'templateUrl' input, then verify that it is part of this module.
2. If 'datepicker-inner' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message.
 ("ustomClass]="customClass"
                      [dateDisabled]="dateDisabled"
                      [ERROR ->][templateUrl]="templateUrl"
                      [onlyCurrentMonth]="onlyCurrentMonth"
             "): DatePickerComponent@20:22
zone.js (463,10)

I checked datepicker-inner and there was indeed no templateUrl property. Removing it from datepicker worked, but I’m not sure if I’m supposed to do that.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 3
  • Comments: 16

Most upvoted comments

This issue is confirmed and, in fact, there is already a merged pull request to fix this (see above). I am closing this issue to prevent too many “same here” comments.

same problem. Can’t use date picker, I can’t even add it to NgModule