Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngx-daterangepicker-material compability with angular 15 #524

Open
krutikapatil-bh opened this issue May 8, 2023 · 4 comments
Open

ngx-daterangepicker-material compability with angular 15 #524

krutikapatil-bh opened this issue May 8, 2023 · 4 comments

Comments

@krutikapatil-bh
Copy link

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

@Exabait
Copy link

Exabait commented May 23, 2023

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?

@enlight3d
Copy link

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

@deferenty
Copy link

The same problem in Angular 16

@Elmanderrr
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants