andyperlitch / ngx-super-table

A feature-rich table component built with angular.
MIT License
115 stars 27 forks source link

Can't resolve 'rxjs/BehaviorSubject' #52

Open jcpc91 opened 3 years ago

jcpc91 commented 3 years ago

i getting error in './node_modules/ngx-super-table/SuperTableState.js'

ERROR in ./node_modules/ngx-super-table/SuperTableState.js Module not found: Error: Can't resolve 'rxjs/BehaviorSubject' in 'C:\git\tituloelectronicofrontend\node_modules\ngx-super-table'

var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; import { Injectable } from '@angular/core'; ERROR . >>>> **import { BehaviorSubject } from 'rxjs/BehaviorSubject';** var sortCycle = ['ASC', 'DESC', null]; var getNextSortOrder = function (currentSortOrder) {

this is my package.json { "name": "titulo-electronico-front-end", "version": "0.0.0", "private": true, "dependencies": { "@angular/animations": "^7.2.16", "@angular/common": "^7.2.16", "@angular/compiler": "^7.2.16", "@angular/core": "^7.2.16", "@angular/forms": "^7.2.16", "@angular/platform-browser": "^7.2.16", "@angular/platform-browser-dynamic": "^7.2.16", "@angular/router": "^7.2.16", "@auth0/angular-jwt": "^2.1.2", "@ng-bootstrap/ng-bootstrap": "^4.2.2", "core-js": "^2.6.11", "moment": "^2.27.0", "ngx-custom-validators": "^7.0.0", "ngx-socket-io": "^2.1.1", "ngx-super-table": "0.0.2", "ngx-ui-switch": "^9.0.2", "rxjs": "~6.3.3", "tslib": "^1.13.0", "zone.js": "~0.8.26" }, "devDependencies": { "@angular-devkit/build-angular": "^0.13.10", "@angular/cli": "^7.3.10", "@angular/compiler-cli": "^7.2.16", "@angular/language-service": "^7.2.16", "@types/jasmine": "^2.8.17", "@types/jasminewd2": "^2.0.8", "@types/node": "~8.9.4", "codelyzer": "~4.5.0", "copy": "0.3.2", "jasmine-core": "~2.99.1", "jasmine-spec-reporter": "~4.2.1", "karma": "~3.1.1", "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "^2.0.6", "karma-jasmine": "~1.1.2", "karma-jasmine-html-reporter": "^0.2.2", "protractor": "^5.4.4", "ts-node": "~7.0.0", "tslint": "~5.11.0", "typescript": "~3.2.2" } } thanks!!

cmckni3 commented 3 years ago

Strange. Probably an import path change in RxJS. I can check but I believe super table still uses rxjs 5.x.

cmckni3 commented 3 years ago

Confirmed. super table currently uses RxJS. Angular needs to be updated on the project.

Related to #53

cmckni3 commented 3 years ago

Have you tried using rxjs-compat layer as a workaround for now?