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

Library not working due to a dayjs problem.

Open lorenzo0895 opened this issue 2 years ago • 3 comments

Versions

  • Angular version: 14.0.6
  • component version: 6.0.2

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 [email protected]
  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

lorenzo0895 avatar Sep 08 '22 12:09 lorenzo0895

I double this!

songokudbz avatar Sep 22 '22 12:09 songokudbz

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...

adam-drozdz-ie avatar Oct 11 '22 00:10 adam-drozdz-ie

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.

aniket-kale avatar Nov 03 '23 13:11 aniket-kale