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.

Can't bind to 'owlDateTimeTrigger' since it isn't a known property of 'input'.

See original GitHub issue

HTML -

<label>
    Date
    <input [owlDateTimeTrigger]="dt3" [owlDateTime]="dt3">
    <owl-date-time #dt3></owl-date-time>
</label>

PACKAGE.JSON -

"dependencies": {
    "@angular/animations": "^6.0.2",
    "@angular/cdk": "^6.3.1",
    "@angular/common": "^6.0.2",
    "@angular/compiler": "^6.0.2",
    "@angular/core": "^6.0.2",
    "@angular/forms": "^6.0.2",
    "@angular/http": "^6.0.2",
    "@angular/platform-browser": "^6.0.2",
    "@angular/platform-browser-dynamic": "^6.0.2",
    "@angular/router": "^6.0.2",
    "@angular/service-worker": "^6.0.2",
    "@ngui/auto-complete": "^0.13.3",
    "@types/crypto-js": "^3.1.37",
    "browser-sync": "^2.11.2",
    "core-js": "^2.5.4",
    "crypto-js": "^3.1.9-1",
    "intl": "^1.2.5",
    "jquery": "^3.2.1",
    "jquery-ui": "^1.12.1",
    "minimist": "^1.2.0",
    "ng-pick-datetime": "^6.0.8",
    "ng2-http-intercept": "^1.0.4",
    "ng2-validation": "^3.8.0",
    "ng4-auto-complete": "^1.0.0",
    "ngx-cookie-service": "^1.0.9",
    "patternlab-node": "2.9.3",
    "reflect-metadata": "^0.1.8",
    "rxjs": "^6.0.0",
    "rxjs-compat": "^6.1.0",
    "styleguidekit-assets-default": "^3.0.0",
    "styleguidekit-mustache-default": "^3.0.0",
    "systemjs": "0.19.41",
    "zone.js": "^0.8.26"
  }

ERROR -

ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'owlDateTimeTrigger' since it isn't a known property of 'input'. ("
<label>
    Date
    <input [ERROR ->][owlDateTimeTrigger]="dt3" [owlDateTime]="dt3">
    <owl-date-time #dt3></owl-date-time>
</label>
"): ng:///POSGripModule/GetAQuoteComponent.html@15:11
Can't bind to 'owlDateTime' since it isn't a known property of 'input'. ("
<label>
    Date
    <input [owlDateTimeTrigger]="dt3" [ERROR ->][owlDateTime]="dt3">
    <owl-date-time #dt3></owl-date-time>
</label>
"): ng:///POSGripModule/GetAQuoteComponent.html@15:38
'owl-date-time' is not a known element:
1. If 'owl-date-time' is an Angular component, then verify that it is part of this module.
2. If 'owl-date-time' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
    Date
    <input [owlDateTimeTrigger]="dt3" [owlDateTime]="dt3">
    [ERROR ->]<owl-date-time #dt3></owl-date-time>
</label>

"): ng:///POSGripModule/GetAQuoteComponent.html@16:4
Error: Template parse errors:
Can't bind to 'owlDateTimeTrigger' since it isn't a known property of 'input'. ("
<label>
    Date
    <input [ERROR ->][owlDateTimeTrigger]="dt3" [owlDateTime]="dt3">
    <owl-date-time #dt3></owl-date-time>
</label>
"): ng:///POSGripModule/GetAQuoteComponent.html@15:11
Can't bind to 'owlDateTime' since it isn't a known property of 'input'. ("
<label>
    Date
    <input [owlDateTimeTrigger]="dt3" [ERROR ->][owlDateTime]="dt3">
    <owl-date-time #dt3></owl-date-time>
</label>
"): ng:///POSGripModule/GetAQuoteComponent.html@15:38
'owl-date-time' is not a known element:
1. If 'owl-date-time' is an Angular component, then verify that it is part of this module.
2. If 'owl-date-time' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
    Date
    <input [owlDateTimeTrigger]="dt3" [owlDateTime]="dt3">
    [ERROR ->]<owl-date-time #dt3></owl-date-time>
</label>

"): ng:///POSGripModule/GetAQuoteComponent.html@16:4
    at syntaxError (compiler.js:215)
    at TemplateParser.parse (compiler.js:14702)
    at JitCompiler._parseTemplate (compiler.js:22709)
    at JitCompiler._compileTemplate (compiler.js:22696)
    at compiler.js:22639
    at Set.forEach (<anonymous>)
    at JitCompiler._compileComponents (compiler.js:22639)
    at compiler.js:22549
    at Object.then (compiler.js:206)
    at JitCompiler._compileModuleAndComponents (compiler.js:22548)
    at syntaxError (compiler.js:215)
    at TemplateParser.parse (compiler.js:14702)
    at JitCompiler._parseTemplate (compiler.js:22709)
    at JitCompiler._compileTemplate (compiler.js:22696)
    at compiler.js:22639
    at Set.forEach (<anonymous>)
    at JitCompiler._compileComponents (compiler.js:22639)
    at compiler.js:22549
    at Object.then (compiler.js:206)
    at JitCompiler._compileModuleAndComponents (compiler.js:22548)
    at resolvePromise (zone.js:814)
    at resolvePromise (zone.js:771)
    at zone.js:873
    at ZoneDelegate.invokeTask (zone.js:421)
    at Object.onInvokeTask (core.js:4053)
    at ZoneDelegate.invokeTask (zone.js:420)
    at Zone.runTask (zone.js:188)
    at drainMicroTaskQueue (zone.js:595)
    at n (shim.js:6150)
    at shim.js:6167
    at ____________________Elapsed_2_ms__At__Mon_Jul_02_2018_17_27_22_GMT_0530__IST_ ()
    at Object.onScheduleTask (long-stack-trace-zone.js:108)
    at ZoneDelegate.scheduleTask (zone.js:401)
    at Object.onScheduleTask (zone.js:297)
    at ZoneDelegate.scheduleTask (zone.js:401)
    at Zone.scheduleTask (zone.js:232)
    at Zone.scheduleMicroTask (zone.js:252)
    at scheduleResolveOrReject (zone.js:862)
    at resolvePromise (zone.js:808)
    at ____________________Elapsed_0_ms__At__Mon_Jul_02_2018_17_27_22_GMT_0530__IST_ ()
    at Object.onScheduleTask (long-stack-trace-zone.js:108)
    at ZoneDelegate.scheduleTask (zone.js:401)
    at Object.onScheduleTask (zone.js:297)
    at ZoneDelegate.scheduleTask (zone.js:401)
    at Zone.scheduleTask (zone.js:232)
    at Zone.scheduleMicroTask (zone.js:252)
    at scheduleResolveOrReject (zone.js:862)
    at resolvePromise (zone.js:808)
    at ____________________Elapsed_0_ms__At__Mon_Jul_02_2018_17_27_22_GMT_0530__IST_ ()
    at Object.onScheduleTask (long-stack-trace-zone.js:108)
    at ZoneDelegate.scheduleTask (zone.js:401)
    at Object.onScheduleTask (zone.js:297)
    at ZoneDelegate.scheduleTask (zone.js:401)
    at Zone.scheduleTask (zone.js:232)
    at Zone.scheduleMicroTask (zone.js:252)
    at scheduleResolveOrReject (zone.js:862)
    at resolvePromise (zone.js:808)
    at ____________________Elapsed_2_ms__At__Mon_Jul_02_2018_17_27_22_GMT_0530__IST_ ()
    at Object.onScheduleTask (long-stack-trace-zone.js:108)
    at ZoneDelegate.scheduleTask (zone.js:401)
    at Object.onScheduleTask (zone.js:297)
    at ZoneDelegate.scheduleTask (zone.js:401)
    at Zone.scheduleTask (zone.js:232)
    at Zone.scheduleMicroTask (zone.js:252)
    at scheduleResolveOrReject (zone.js:862)
    at resolvePromise (zone.js:808)
    at ____________________Elapsed_41_ms__At__Mon_Jul_02_2018_17_27_22_GMT_0530__IST_ ()
    at Object.onScheduleTask (long-stack-trace-zone.js:108)
    at ZoneDelegate.scheduleTask (zone.js:401)
    at Object.onScheduleTask (zone.js:297)
    at ZoneDelegate.scheduleTask (zone.js:401)
    at Zone.scheduleTask (zone.js:232)
    at Zone.scheduleMicroTask (zone.js:252)
    at scheduleResolveOrReject (zone.js:862)
    at resolvePromise (zone.js:808)
    at ____________________Elapsed_0_ms__At__Mon_Jul_02_2018_17_27_22_GMT_0530__IST_ ()
    at Object.onScheduleTask (long-stack-trace-zone.js:108)
    at ZoneDelegate.scheduleTask (zone.js:401)
    at Object.onScheduleTask (zone.js:297)
    at ZoneDelegate.scheduleTask (zone.js:401)
    at Zone.scheduleTask (zone.js:232)
    at Zone.scheduleMicroTask (zone.js:252)
    at scheduleResolveOrReject (zone.js:862)
    at resolvePromise (zone.js:808)
    at ____________________Elapsed_2_ms__At__Mon_Jul_02_2018_17_27_22_GMT_0530__IST_ ()
    at Object.onScheduleTask (long-stack-trace-zone.js:108)
    at ZoneDelegate.scheduleTask (zone.js:401)
    at Object.onScheduleTask (zone.js:297)
    at ZoneDelegate.scheduleTask (zone.js:401)
    at Zone.scheduleTask (zone.js:232)
    at Zone.scheduleMicroTask (zone.js:252)
    at scheduleResolveOrReject (zone.js:862)
    at resolvePromise (zone.js:808)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

6reactions
hardy12994commented, Jul 2, 2018

This Error has been cleared by setting this module in child NG modules as well as in main NG Module

2reactions
dinumarathecommented, Oct 1, 2019

NgModel is a angular directive that comes with the FormsModule. Getting the error means that you didn’t imported the FormsModule in your app.module.ts. Import it like below :

import { FormsModule } from ‘@angular/forms’;

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't bind to 'owlDateTimeTrigger' since it isn't a known ...
It looks like you are imported in your module SmartTableDatepickerModule , however, you have not imported import { OwlDateTimeModule, ...
Read more >
Can't bind to 'owlDateTimeTrigger' since it isn't a known ...
Coding example for the question Can't bind to 'owlDateTimeTrigger' since it isn't a known property of 'span'-angular.js.
Read more >
date-time-picker - Bountysource
1.11, error message: Can't bind to'owlDateTime' since it isn't a known property of'input' $ 0. Created 1 year ago in DanielYKPan/date-time-picker with 0 ......
Read more >
Fix: Can't bind to form control since it isn't a known ... - YouTube
Fix: Can't bind to form control since it isn't a known property of input ... this issue happened when angular doesn't add reference...
Read more >
Owl Date Time Picker - OwlCool
For date time format examples and more demo examples, checkout them out from ... #dt1></owl-date-time> // timer only <input [owlDateTimeTrigger]="dt2" ...
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