matheo / angular

Open Source Angular Libraries: MatDataSource, MatDatepicker
http://matheo.co/demos/
MIT License
60 stars 15 forks source link

More than one custom value accessor matches form control with unspecified name attribute #30

Closed StephanBis closed 3 years ago

StephanBis commented 3 years ago

Describe the bug

When adding both MatDatepickerModule and MatNativeDateModule to my EventsModule, a runtime error occurs.

More than one custom value accessor matches form control with unspecified name attribute

Minimal Reproduction

See screenshots.

Expected behavior

To work like before MatNativeDateModule moved to /core.

Screenshots

image image image

Your Environment

Angular Version:

Angular CLI: 12.0.3
Node: 14.17.0
Package Manager: npm 7.16.0
OS: win32 x64

Anything else relevant?

Datepicker version: 11.2.15

StephanBis commented 3 years ago

Nevermind.. found out I was still importing MatDatepickerModule.