ngx-daterangepicker-material icon indicating copy to clipboard operation
ngx-daterangepicker-material copied to clipboard

ngx-daterangepicker-material compability with angular 15

Open krutikapatil-bh opened this issue 2 years ago • 4 comments

Is ngx-daterangepicker-material 6.0.4 version compatible with Angular 15

krutikapatil-bh avatar May 08 '23 10:05 krutikapatil-bh

Error: node_modules/ngx-daterangepicker-material/daterangepicker.component.d.ts:3:8 - error TS1259: Module '".../node_modules/dayjs/esm/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag
3 import dayjs, { Dayjs } from 'dayjs/esm';
         ~~~~~

  node_modules/dayjs/esm/index.d.ts:3:1
    3 export = dayjs;
      ~~~~~~~~~~~~~~~
    This module is declared with 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.

I'm trying to migrate my Angular app to 15 and get this error after update ngx-daterangepicker-material to 6.0.4.

How can I fix this?

Exabait avatar May 23 '23 07:05 Exabait

same here and I don't really want to enable allowSyntheticDefaultImports ...

enlight3d avatar May 25 '23 14:05 enlight3d

The same problem in Angular 16

deferenty avatar Jun 23 '23 13:06 deferenty

for those who are dont care about allowSyntheticDefaultImports, you can just add it to the tsconfg complierOptions with true value

Elmanderrr avatar Oct 26 '23 12:10 Elmanderrr