jkuri / ngx-slimscroll

Customizable Scrollbar Directive for Angular

Home Page:https://ngx-slimscroll.jankuri.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module build failed at ng2-slimscroll/index.ts

MorlaRamakrishna opened this issue · comments

I have followed below steps

1. Installation
npm install ng2-slimscroll
2. Imported module like
import { SlimScrollModule } from 'ng2-slimscroll';
imports: [ ....................
SlimScrollModule,
......................]

Error out in nodemodules/ng2-slimscroll/index.ts like

ERROR in ./~/ng2-slimscroll/index.ts
Module build failed: Error
at new FatalError (E:\ReconWorkspace\AgreeGateway\node_modules\tslint\lib\error.js:40:23)
at Function.findConfiguration (E:\ReconWorkspace\AgreeGateway\node_modules\tslint\lib\configurat
ion.js:47:15)
at resolveOptions (E:\ReconWorkspace\AgreeGateway\node_modules\tslint-loader\index.js:35:64)
at Object.module.exports (E:\ReconWorkspace\AgreeGateway\node_modules\tslint-loader\index.js:124
:17)
@ ./src/main/webapp/app/test/test.module.ts 21:23-48
@ ./src/main/webapp/app/app.module.ts
@ ./src/main/webapp/app/app.main.ts
@ multi (webpack)-dev-server/client?http://localhost:9060 webpack/hot/dev-server ./src/main/webapp/
app/app.main

I have the same issue but with completely different package. I think it's a webpack/tslint bug.

replace:
import { SlimScrollModule } from 'ngx-slimscroll';

to
import { NgSlimScrollModule } from 'ngx-slimscroll';