coachcare / npm-datepicker

Material Datepicker Fork with TimePicker by CoachCare
MIT License
32 stars 18 forks source link

TypeError: Cannot read property 'type' of undefined #23

Closed meoti closed 5 years ago

meoti commented 5 years ago

ERROR TypeError: Cannot read property 'type' of undefined at MatDatepickerInput.push../node_modules/@coachcare/datepicker/fesm5/coachcare-datepicker.js.MatDatepickerInput._formatValue (coachcare-datepicker.js:5269) at MatDatepickerInput.set [as value] (coachcare-datepicker.js:4957) at MatDatepickerInput.push../node_modules/@coachcare/datepicker/fesm5/coachcare-datepicker.js.MatDatepickerInput.writeValue (coachcare-datepicker.js:5145) at setUpControl (forms.js:1645) at FormGroupDirective.push../node_modules/@angular/forms/fesm5/forms.js.FormGroupDirective.addControl (forms.js:4454) at FormControlName.push../node_modules/@angular/forms/fesm5/forms.js.FormControlName._setUpControl (forms.js:4959) at FormControlName.push../node_modules/@angular/forms/fesm5/forms.js.FormControlName.ngOnChanges (forms.js:4909) at checkAndUpdateDirectiveInline (core.js:9246) at checkAndUpdateNodeInline (core.js:10514) at checkAndUpdateNode (core.js:10476)

As a result renders this image

"dependencies": { "@angular/animations": "^6.1.7", "@angular/cdk": "^6.4.7", "@angular/common": "^6.1.0", "@angular/compiler": "^6.1.0", "@angular/core": "^6.1.0", "@angular/fire": "^5.0.0", "@angular/flex-layout": "^6.0.0-beta.18", "@angular/forms": "^6.1.0", "@angular/http": "^6.1.0", "@angular/material": "^6.4.7", "@angular/platform-browser": "^6.1.0", "@angular/platform-browser-dynamic": "^6.1.0", "@angular/router": "^6.1.0", "@coachcare/datepicker": "^1.0.0", "@ncstate/sat-popover": "^2.1.1", "@types/googlemaps": "^3.30.13", "core-js": "^2.5.4", "firebase": "^5.5.1", "geofirestore": "^2.2.1", "hammerjs": "^2.0.8", "moment": "^2.22.2", "moment-timezone": "^0.5.21", "ngx-moment": "^3.1.0", "rxjs": "~6.2.0", "zone.js": "~0.8.26" },

meoti commented 5 years ago

Sorry, figured it out

matheo commented 5 years ago

@meoti the issue was with your code or with the library?

meoti commented 5 years ago

Nope not the library, was with my code

matheo commented 5 years ago

@meoti all right, enjoy then!