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

date.clone is not a function in NbRangepicker #2517

Open
1 task
Nexeuz opened this issue Sep 19, 2020 · 0 comments · May be fixed by #2834
Open
1 task

date.clone is not a function in NbRangepicker #2517

Nexeuz opened this issue Sep 19, 2020 · 0 comments · May be fixed by #2834
Assignees

Comments

@Nexeuz
Copy link

Nexeuz commented Sep 19, 2020

Issue type

I'm submitting a ... (check one with "x")

  • [x ] bug report
  • feature request

Issue description

set input property [min] date in nb-rangepicker causes core.js:4197 ERROR TypeError: date.clone is not a function 'im working with nebular and mommentJs also causes: Error: date2.getTime is not a function

Current behavior:

I can't select a ranges of dates.

Expected behavior:

Be able to select a ranges of ranges.

Steps to reproduce:

Choose a date ranges with NbRangePicker

Related code:

Stackblitz code bug here

insert short code snippets here

Other information:

npm, node, OS, Browser

<!--
Node, npm: `node v12.18.4 --version` and `npm 6.14.6  --version`
 Linux Ubuntu 
-->

Angular, Nebular

{
  "name": "titan",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "~10.0.5",
    "@angular/cdk": "^10.0.0",
    "@angular/common": "~10.0.5",
    "@angular/compiler": "~10.0.5",
    "@angular/core": "~10.0.5",
    "@angular/forms": "~10.0.5",
    "@angular/platform-browser": "~10.0.5",
    "@angular/platform-browser-dynamic": "~10.0.5",
    "@angular/router": "~10.0.5",
    "@datorama/akita": "4.22.0",
    "@datorama/akita-ng-entity-service": "^1.0.0",
    "@nebular/eva-icons": "^6.1.0",
    "@nebular/moment": "^6.1.0",
    "@nebular/theme": "^6.1.0",
    "eva-icons": "^1.1.3",
    "moment": "^2.27.0",
    "ngx-skeleton-loader": "^2.4.4",
    "rxjs": "~6.5.5",
    "tslib": "^2.0.0",
    "zone.js": "~0.10.3"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.1000.7",
    "@angular/cli": "~10.0.4",
    "@angular/compiler-cli": "~10.0.5",
    "@datorama/akita-ng-router-store": "^3.1.3",
    "@datorama/akita-ngdevtools": "^3.0.2",
    "@schematics/angular": "~10.0.4",
    "@types/jasmine": "~3.5.0",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "^12.11.1",
    "codelyzer": "^6.0.0",
    "jasmine-core": "~3.5.0",
    "jasmine-spec-reporter": "~5.0.0",
    "karma": "~5.0.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage-istanbul-reporter": "~3.0.2",
    "karma-jasmine": "~3.3.0",
    "karma-jasmine-html-reporter": "^1.5.0",
    "protractor": "~7.0.0",
    "ts-node": "~8.3.0",
    "tslint": "~6.1.0",
    "typescript": "~3.9.5"
  }
}

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

Successfully merging a pull request may close this issue.

2 participants