dudipsh/nativescript-ngx-date-range

Error: Uncaught (in promise): TypeError: Class constructor View cannot be invoked without 'new'

InocentumAbhijit opened this issue · 0 comments

Error

JS: ERROR Error: Uncaught (in promise): TypeError: Class constructor View cannot be invoked without 'new'
JS: TypeError: Class constructor View cannot be invoked without 'new'
JS: at NgxDateRange.Common [as constructor] (file: node_modules\nativescript-ngx-date-range\ngx-date-range.common.js:7:0)
JS: at new NgxDateRange (file: node_modules\nativescript-ngx-date-range\ngx-date-range.android.js:13:0)
JS: at create (file: node_modules\nativescript-ngx-date-range\ngx-date-range.android.js:108:0)
JS: at new HomeComponent (file: src\app\home\home.component.tns.ts:19:28)
JS: at NodeInjectorFactory.HomeComponent_Factory [as factory] (file:///data/data/com.trivocity.travel/files/app/bundle.js:240
:65)
JS: at getNodeInjectable (file: node_modules@angular\core_ivy_ngcc_\fesm2015\core.js:3498:0)
JS: at instantiateRootComponent (file: node_modules@angular\core_ivy_ngcc_\fesm2015\core.js:9828:0)
JS: at createRootComponent (file: node_modules@angular\core_ivy_ngcc_\fesm2015\core.js:12140:0)
JS: at ComponentFactory$1.create (file:///d...

Which platform(s) does your issue occur on?

  • Android
  • Android version 9
  • emulator or device : device

Please, provide the following version numbers that your issue occurs with:

  • CLI: (run tns --version to fetch it) : 7.0.11
  • Cross-platform modules: (check the 'version' attribute in the
    node_modules/tns-core-modules/package.json file in your project) : 6.5.21
  • Runtime(s): (look for the "tns-android" and "tns-ios" properties in the package.json file of your project)
  • Plugin(s): (look for the version numbers in the package.json file of your
    project and paste your dependencies and devDependencies here)

"dependencies": {
"@angular/animations": "~11.0.3",
"@angular/common": "~11.0.3",
"@angular/compiler": "~11.0.3",
"@angular/core": "~11.0.3",
"@angular/forms": "~11.0.3",
"@angular/platform-browser": "~11.0.3",
"@angular/platform-browser-dynamic": "~11.0.3",
"@angular/pwa": "^0.1100.3",
"@angular/router": "~11.0.3",
"@nativescript/angular": "~10.1.0",
"@nativescript/core": "~7.0.0",
"@nativescript/theme": "~2.5.0",
"bootstrap": "^4.5.0",
"nativescript-ngx-date-range": "^1.0.6",
"reflect-metadata": "~0.1.12",
"rxjs": "~6.5.4",
"tns-core-modules": "^6.5.21",
"tslib": "^2.0.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.1100.2",
"@angular/cli": "~11.0.2",
"@angular/compiler-cli": "~11.0.3",
"@angular/language-service": "~11.0.3",
"@nativescript/android": "7.0.1",
"@nativescript/tslint-rules": "~0.0.5",
"@nativescript/webpack": "~3.0.0",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
"codelyzer": "^6.0.0",
"jasmine-core": "~3.6.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": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~4.0.5"
}