optimistex / ngx-select-ex

Angular based replacement for select boxes
https://optimistex.github.io/ngx-select-ex/
MIT License
111 stars 42 forks source link

Error on compiled file 'ng build' #113

Closed diansigit closed 6 years ago

diansigit commented 6 years ago

I get error on compiled file /dist 'ng build'

core.js:1673 ERROR TypeError: rxjs_Observable__WEBPACK_IMPORTED_MODULE_5__.Observable.from is not a function
    at MergeMapSubscriber.project (ngx-select-ex.js:267)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._tryNext (mergeMapTo.js:1)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._next (mergeMap.js:95)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:56)
    at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject._subscribe (BehaviorSubject.js:23)
    at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable._trySubscribe (Observable.js:43)
    at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/Subject.js.Subject._trySubscribe (Subject.js:90)
    at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe (Observable.js:29)
    at MergeMapOperator.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapOperator.call (mergeMap.js:76)
    at AnonymousSubject.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe (Observable.js:24)
defaultErrorLogger @ core.js:1673
core.js:1673 ERROR TypeError: rxjs_Observable__WEBPACK_IMPORTED_MODULE_5__.Observable.from is not a function
    at NgxSelectComponent.push../node_modules/ngx-select-ex/esm5/ngx-select-ex.js.NgxSelectComponent.optionsFilteredFlat (ngx-select-ex.js:357)
    at NgxSelectComponent.push../node_modules/ngx-select-ex/esm5/ngx-select-ex.js.NgxSelectComponent.navigateOption (ngx-select-ex.js:370)
    at CombineLatestSubscriber.resultSelector (ngx-select-ex.js:284)
    at CombineLatestSubscriber.push../node_modules/rxjs/_esm5/internal/observable/combineLatest.js.CombineLatestSubscriber._tryResultSelector (combineLatest.js:101)
    at CombineLatestSubscriber.push../node_modules/rxjs/_esm5/internal/observable/combineLatest.js.CombineLatestSubscriber.notifyNext (combineLatest.js:95)
    at InnerSubscriber.push../node_modules/rxjs/_esm5/internal/InnerSubscriber.js.InnerSubscriber._next (InnerSubscriber.js:16)
    at InnerSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:56)
    at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject._subscribe (BehaviorSubject.js:23)
    at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable._trySubscribe (Observable.js:43)
    at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/Subject.js.Subject._trySubscribe (Subject.js:90)
defaultErrorLogger @ core.js:1673
core.js:1673 ERROR TypeError: rxjs_Observable__WEBPACK_IMPORTED_MODULE_5__.Observable.from is not a function
    at MergeMapSubscriber.project (ngx-select-ex.js:267)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._tryNext (mergeMapTo.js:1)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._next (mergeMap.js:95)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:56)
    at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject._subscribe (BehaviorSubject.js:23)
    at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable._trySubscribe (Observable.js:43)
    at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/Subject.js.Subject._trySubscribe (Subject.js:90)
    at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe (Observable.js:29)
    at MergeMapOperator.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapOperator.call (mergeMap.js:76)
    at AnonymousSubject.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe (Observable.js:24)
defaultErrorLogger @ core.js:1673
core.js:1673 ERROR TypeError: rxjs_Observable__WEBPACK_IMPORTED_MODULE_5__.Observable.from is not a function
    at NgxSelectComponent.push../node_modules/ngx-select-ex/esm5/ngx-select-ex.js.NgxSelectComponent.optionsFilteredFlat (ngx-select-ex.js:357)
    at NgxSelectComponent.push../node_modules/ngx-select-ex/esm5/ngx-select-ex.js.NgxSelectComponent.navigateOption (ngx-select-ex.js:370)
    at CombineLatestSubscriber.resultSelector (ngx-select-ex.js:284)
    at CombineLatestSubscriber.push../node_modules/rxjs/_esm5/internal/observable/combineLatest.js.CombineLatestSubscriber._tryResultSelector (combineLatest.js:101)
    at CombineLatestSubscriber.push../node_modules/rxjs/_esm5/internal/observable/combineLatest.js.CombineLatestSubscriber.notifyNext (combineLatest.js:95)
    at InnerSubscriber.push../node_modules/rxjs/_esm5/internal/InnerSubscriber.js.InnerSubscriber._next (InnerSubscriber.js:16)
    at InnerSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:56)
    at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/BehaviorSubject.js.BehaviorSubject._subscribe (BehaviorSubject.js:23)
    at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/Observable.js.Observable._trySubscribe (Observable.js:43)
    at BehaviorSubject.push../node_modules/rxjs/_esm5/internal/Subject.js.Subject._trySubscribe (Subject.js:90)
defaultErrorLogger @ core.js:1673
NgxSelectComponent.html:13 ERROR TypeError: rxjs_Observable__WEBPACK_IMPORTED_MODULE_5__.Observable.from is not a function
    at NgxSelectComponent.push../node_modules/ngx-select-ex/esm5/ngx-select-ex.js.NgxSelectComponent.optionsFilteredFlat (ngx-select-ex.js:357)
    at NgxSelectComponent.push../node_modules/ngx-select-ex/esm5/ngx-select-ex.js.NgxSelectComponent.navigateOption (ngx-select-ex.js:370)
    at NgxSelectComponent.push../node_modules/ngx-select-ex/esm5/ngx-select-ex.js.NgxSelectComponent.optionsOpen (ngx-select-ex.js:673)
    at Object.eval [as handleEvent] (NgxSelectComponent.html:14)
    at handleEvent (core.js:10258)
    at callWithDebugContext (core.js:11351)
    at Object.debugHandleEvent [as handleEvent] (core.js:11054)
    at dispatchEvent (core.js:7717)
    at core.js:8161
    at HTMLDivElement.<anonymous> (platform-browser.js:995)
View_NgxSelectComponent_1 @ NgxSelectComponent.html:13
NgxSelectComponent.html:13 ERROR CONTEXT DebugContext_

this my package.json setting

{
  "dependencies": {
    "@angular-devkit/core": "^0.6.7",
    "@angular/animations": "^6.0.3",
    "@angular/cdk": "^6.2.0",
    "@angular/common": "^6.0.3",
    "@angular/compiler": "^6.0.3",
    "@angular/core": "^6.0.3",
    "@angular/forms": "^6.0.3",
    "@angular/http": "^6.0.3",
    "@angular/platform-browser": "^6.0.3",
    "@angular/platform-browser-dynamic": "^6.0.3",
    "@angular/router": "^6.0.3",
    "@saritasa/ngx-text-mask": "^8.0.8",
    "@swimlane/ngx-datatable": "^13.0.0",
    "angular-highcharts": "^6.1.3",
    "awesome-bootstrap-checkbox": "^1.0.1",
    "compass-mixins": "^0.12.10",
    "core-js": "^2.5.7",
    "font-awesome": "^4.7.0",
    "highcharts": "^6.0.7",
    "ionicons": "^3.0.0",
    "lodash": "^4.17.4",
    "material-design-icons": "^3.0.1",
    "mdi": "^2.2.43",
    "moment": "^2.22.2",
    "ngx-bootstrap": "^3.0.1",
    "ngx-responsive": "^6.0.0",
    "ngx-select-ex": "^3.5.9",
    "ngx-toastr": "^8.7.3",
    "ngx-ui-switch": "^7.0.0",
    "rxjs": "^6.2.1",
    "rxjs-compat": "^6.2.1",
    "simple-line-icons": "^2.4.1",
    "stacktrace-js": "^2.0.0",
    "text-mask-addons": "^3.7.2",
    "tinymce": "^4.7.4",
    "zone.js": "^0.8.14"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^0.6.7",
    "@angular/cli": "^6.0.7",
    "@angular/compiler-cli": "^6.0.3",
    "@angular/language-service": "^6.0.3",
    "@types/highcharts": "^5.0.22",
    "@types/jasmine": "^2.8.7",
    "@types/jasminewd2": "^2.0.3",
    "@types/lodash": "^4.14.109",
    "@types/node": "^9.4.6",
    "codelyzer": "^4.0.2",
    "http-server": "^0.11.1",
    "jasmine-core": "^3.1.0",
    "jasmine-spec-reporter": "^4.2.1",
    "karma": "^2.0.2",
    "karma-chrome-launcher": "^2.2.0",
    "karma-cli": "^1.0.1",
    "karma-coverage-istanbul-reporter": "^2.0.1",
    "karma-jasmine": "^1.1.2",
    "karma-jasmine-html-reporter": "^1.1.0",
    "node-sass": "^4.7.2",
    "protractor": "~5.3.0",
    "ts-node": "~5.0.1",
    "tslint": "^5.8.0",
    "typescript": "~2.7.2"
  }
}
diansigit commented 6 years ago

It's solved, i force version of rxjs and rxjs-compat to ~6.2.1