fetrarij / ngx-daterangepicker-material

Pure Angular 2+ date range picker with material design theme, a demo here:
https://fetrarij.github.io/ngx-daterangepicker-material/
MIT License
246 stars 247 forks source link

Library not working due to a dayjs problem. #472

Open lorenzo0895 opened 1 year ago

lorenzo0895 commented 1 year ago

Versions

Describe the bug Ngx-daterangepicker-material is not working due to a dayjs problem.

To Reproduce

  1. Start a new app
  2. Navigate through your folder app
  3. Install current version npm i ngx-daterangepicker@6.0.2
  4. Inside app.module.ts
    • Import its module: import { NgxDaterangepickerMd } from 'ngx-daterangepicker-material';
    • Add the module into imports NgxDaterangepickerMd.forRoot()

Expected behavior It should not throw erros at the beginig of the project.

Screenshots image

songokudbz commented 1 year ago

I double this!

adam-drozdz-ie commented 1 year ago

Go to your tsconfig.json -> compilerOptions -> and set: "allowSyntheticDefaultImports": true. It's a workaround, but it works. I took it from here: https://github.com/fetrarij/ngx-daterangepicker-material/issues/336#issuecomment-743201841 so it seems it's been an issue for at least 2 years now...

aniket-kale commented 8 months ago

Go to your tsconfig.json -> compilerOptions -> and set: "allowSyntheticDefaultImports": true. It's a workaround, but it works. I took it from here: #336 (comment) so it seems it's been an issue for at least 2 years now...

This is working properly. Thanks.