CuppaLabs / angular2-datetimepicker

Angular 2 and 4 datetime picker component
https://cuppalabs.github.io/angular2-datetimepicker
41 stars 50 forks source link

Build error ! #1

Closed LorediBega closed 6 years ago

LorediBega commented 6 years ago

I got a build error when building in production mode (npm run build-prod) which says ERROR in node_modules\angular2-datetimepicker\datepicker.component.d.ts.DatePicker.html Expected 1 arguments, but got 0

CuppaLabs commented 6 years ago

try with v1.0.1. Let me know if its working.

LorediBega commented 6 years ago

I'm using 3.10.8, i can't downgrade to 1.0.1. However seems that the problem is with this method generateYearList(param: string): void; It is somewhere called without any argument. If i remove this parameter it builds successfully

CuppaLabs commented 6 years ago

there is no version with 3.10.8. Please refer to this package https://www.npmjs.com/package/angular2-datetimepicker. The latest version is 1.0.1. The param issue is fixed there.

LorediBega commented 6 years ago

Sorry thought you were asking about angular CLI, you're right i'm using 1.0.0. How can i upgrade to 1.0.1 ?

CuppaLabs commented 6 years ago

https://www.npmjs.com/package/angular2-datetimepicker. Refer this link. It has all details.

LorediBega commented 6 years ago

I refered to this link yesterday when i installed it but it has installed the 1.0.0 version. I're installed now again and is ok . Thank you