ngx-daterangepicker-material
ngx-daterangepicker-material copied to clipboard
Library not working due to a dayjs problem.
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
- Start a new app
- Navigate through your folder app
- Install current version
npm i [email protected]
- Inside app.module.ts
- Import its module:
import { NgxDaterangepickerMd } from 'ngx-daterangepicker-material';
- Add the module into imports
NgxDaterangepickerMd.forRoot()
- Import its module:
Expected behavior It should not throw erros at the beginig of the project.
Screenshots
I double this!
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...
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.