Reputation: 281
I am using ngx-bootstrap 1.9.2
npm package, but when I try to compile, my project, angular throws following error:
ERROR in C:/xxx/xx/node_modules/ngx-bootstrap/datepicker/bs-datepicker.component.d.ts (46,15): Cannot find name 'Partial'.
ERROR in C:/xxx/xx/node_modules/ngx-bootstrap/datepicker/bs-daterangepicker.component.d.ts (45,15): Cannot find name 'Partial'.
As Partial was introduced in ts version 2.1, I tried upgrading typescript version from 2.0.0 to 2.5.2 nothing helped.
Upvotes: 1
Views: 2542
Reputation: 356
For me it worked after doing the following steps.
And it worked for me. Hope it helps.
Upvotes: 0
Reputation: 281
It was just cache issue, I just perform npm cache clean and performed clean install and my problem was solved.
By the way thanks all, for your comments and answers.
Upvotes: 0
Reputation: 1339
we use typescript 2.4.2, because it's mandatory for angular@5. What can help:
Upvotes: 0