Z
Z
zlodiak2018-09-10 11:38:45
JavaScript
zlodiak, 2018-09-10 11:38:45

Is slim scroll dead?

Trying to install slim scroll for angular6. Judging by the github , the last commit was 8 months ago.
I put it according to the instructions, as a result I get a bunch of errors in the console:

ERROR in ./node_modules/angular-io-slimscroll/node_modules/@angular/core/esm5/core.js
Module not found: Error: Can't resolve 'rxjs/Observable' in '/home/kalinin/projects/realty- miner-new/realty-miner/Web/RealtyMiner.Web.Admin/node_modules/angular-io-slimscroll/node_modules/@angular/core/esm5'
ERROR in ./node_modules/angular-io-slimscroll/node_modules/@angular/ core/esm5/core.js
Module not found: Error: Can't resolve 'rxjs/Subject' in '/home/kalinin/projects/realty-miner-new/realty-miner/Web/RealtyMiner.Web.Admin/node_modules /angular-io-slimscroll/node_modules/@angular/core/esm5'
ERROR in ./node_modules/angular-io-slimscroll/node_modules/@angular/core/esm5/core.js
Module not found: Error: Can't resolve 'rxjs/observable/merge' in '/home/kalinin/projects/realty-miner-new/realty-miner/Web/RealtyMiner.Web.Admin/node_modules/angular-io- slimscroll/node_modules/@angular/core/esm5'
ERROR in ./node_modules/angular-io-slimscroll/node_modules/@angular/core/esm5/core.js
Module not found: Error: Can't resolve 'rxjs/operator/ share' in '/home/kalinin/projects/realty-miner-new/realty-miner/Web/RealtyMiner.Web.Admin/node_modules/angular-io-slimscroll/node_modules/@angular/core/esm5'

Further in ./node_modules/angular-io-slimscroll/node_modules/@angular/core/esm5/core.js I change the following imports:
import { __assign, __extends } from 'tslib';
import { Observable } from 'rxjs/Observable';
import { merge } from 'rxjs/observable/merge';
import { share } from 'rxjs/operator/share';
import { Subject } from 'rxjs/Subject';

to these:
import { __assign, __extends } from 'tslib';
import { Observable } from 'rxjs';
import { merge } from 'rxjs';
import { share } from 'rxjs';
import { Subject } from 'rxjs';

As a result, error messages disappear in the console, but the slim scroll still does not work. However, there are no messages in the console.
Tell me, is it possible to use slim scroll at least by editing the source code (respectively refusing updates) or it has long been abandoned. Are there alternatives?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
zlodiak, 2018-09-10
@zlodiak

Guys, thank you all, but hang up. I found the solution myself and successfully tried it:
https://github.com/rd-dev-ukraine/angular-io-slims...

A
Anton Shvets, 2018-09-10
@Xuxicheta

rxjs-compat try to put

E
eternalfire, 2018-09-10
@eternalfire

you can make your edits and make a pull request

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question