owsolutions / amazing-time-picker

Timepicker (Clock Picker) for Angular 2, Angular 4 and Angular 5, Angular 6, Angular 7 - Compatible with Angular Material
137 stars 76 forks source link

Popup not working & Module not found: Error: Can't resolve 'rxjs/Subject #79

Closed westlakem closed 6 years ago

westlakem commented 6 years ago

I tried just

<input type="time" atp-time-picker value="19:00" />

but the popup wasn't displaying. When i tried to implement the button/service to open the popup, I got the following message.

ERROR in ./node_modules/amazing-time-picker/amazing-time-picker.es5.js Module not found: Error: Can't resolve 'rxjs/Subject' in 'C:\devl\js\xxxxx-dashboard\node_modules\amazing-time-picker'

Angular 6 Node 8.9

package.json

{
  "name": "xxxxxxx-dashboard",
  "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": "^6.0.0",
    "@angular/cdk": "^6.0.1",
    "@angular/common": "^6.0.0",
    "@angular/compiler": "^6.0.0",
    "@angular/core": "^6.0.0",
    "@angular/forms": "^6.0.0",
    "@angular/http": "^6.0.0",
    "@angular/material": "^6.0.1",
    "@angular/platform-browser": "^6.0.0",
    "@angular/platform-browser-dynamic": "^6.0.0",
    "@angular/router": "^6.0.0",
    "amazing-time-picker": "^1.5.3",
    "aws-sdk": "^2.235.1",
    "core-js": "^2.5.4",
    "rxjs": "^6.0.0",
    "zone.js": "^0.8.26"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.6.0",
    "@angular/cli": "~6.0.0",
    "@angular/compiler-cli": "^6.0.0",
    "@angular/language-service": "^6.0.0",
    "@types/jasmine": "~2.8.6",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "^8.9.5",
    "codelyzer": "~4.2.1",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~1.7.1",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~1.4.2",
    "karma-jasmine": "~1.1.1",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.3.0",
    "ts-node": "~5.0.1",
    "tslint": "~5.9.1",
    "typescript": "~2.7.2"
  }
}
arielhenryson commented 6 years ago

This is because there are breaking changes in RXJS 6 so until the fix for this you can npm install rxjs-compat to fix the isure

torabian commented 6 years ago

Please download version 1.8.0. We addressed this issue.