bfwg / ngx-drag-scroll

A lightweight responsive Angular carousel library
https://ngx-drag-scroll.fanjin.io
MIT License
347 stars 99 forks source link

ng build --prod [name] #147

Closed danielhanzs closed 6 years ago

danielhanzs commented 6 years ago

projects\epg\src\lib\epg-date-manager\epg-date-manager.component.ts.EpgDateManagerComponent.html(5,1): : Directive DragScrollDirect ive, Expected 0 arguments, but got 1.

Error: projects\epg\src\lib\epg-date-manager\epg-date-manager.component.ts.EpgDateManagerComponent.html(5,1): : Directive DragScrol lDirective, Expected 0 arguments, but got 1.

at Object.<anonymous> (D:\streaming-lego-admin\web-lego\node_modules\ng-packagr\lib\ngc\compile-source-files.js:53:68)
at Generator.next (<anonymous>)
at D:\streaming-lego-admin\web-lego\node_modules\ng-packagr\lib\ngc\compile-source-files.js:7:71
at new Promise (<anonymous>)
at __awaiter (D:\streaming-lego-admin\web-lego\node_modules\ng-packagr\lib\ngc\compile-source-files.js:3:12)
at Object.compileSourceFiles (D:\streaming-lego-admin\web-lego\node_modules\ng-packagr\lib\ngc\compile-source-files.js:19:12)
at Object.<anonymous> (D:\streaming-lego-admin\web-lego\node_modules\ng-packagr\lib\ng-v5\entry-point\ts\compile-ngc.transform.

js:26:32) at Generator.next () at D:\streaming-lego-admin\web-lego\node_modules\ng-packagr\lib\ng-v5\entry-point\ts\compile-ngc.transform.js:7:71 at new Promise ()

bfwg commented 6 years ago

HI, @danielhanzs . I'll take a looking over the weekend. Thanks for reporting.

MortezaT commented 6 years ago

@danielhanzs Can you provide some code sample?

danielhanzs commented 6 years ago

sorry, in the meantime I wrote an rxjs based drag scroll, but the code at fault is

@HostListener('window:resize', ['$event']) onResize() { this.markElDimension(); this.checkNavStatus(); }

you need to delete the $event at HostListener line of add the event at the onResize function.

After that it should build without errors