jw-angular-pagination icon indicating copy to clipboard operation
jw-angular-pagination copied to clipboard

AOT compiling error

Open ivanagui2 opened this issue 6 years ago • 4 comments

When I try to compile with --aot flag I get the following error.

ERROR in node_modules/jw-angular-pagination/lib/jw-pagination.component.d.ts.JwPaginationComponent.html(9,10): Property 'setPage' is private and only accessible within class 'JwPaginationComponent'. node_modules/jw-angular-pagination/lib/jw-pagination.component.d.ts.JwPaginationComponent.html(3,10): Property 'setPage' is private and only accessible within class 'JwPaginationComponent'. node_modules/jw-angular-pagination/lib/jw-pagination.component.d.ts.JwPaginationComponent.html(6,10): Property 'setPage' is private and only accessible within class 'JwPaginationComponent'. node_modules/jw-angular-pagination/lib/jw-pagination.component.d.ts.JwPaginationComponent.html(12,10): Property 'setPage' is private and only accessible within class 'JwPaginationComponent'. node_modules/jw-angular-pagination/lib/jw-pagination.component.d.ts.JwPaginationComponent.html(15,10): Property 'setPage' is private and only accessible within class 'JwPaginationComponent'.

ivanagui2 avatar Nov 19 '19 13:11 ivanagui2

Same with ng build --prod.

Did you find a way to solve this @ivanagui2 ?

HunteRoi avatar Mar 09 '20 16:03 HunteRoi

setPage () function property must be changed from private to public

file location: node_modules\jw-angular-pagination\lib\jw-pagination.component.d.ts

Markuz1995 avatar Apr 16 '20 01:04 Markuz1995

Yeah we figured that out. Work around would be to extract the component and put it within your application. The point of this issue is currently to make it fixed in the library itself.

HunteRoi avatar Apr 16 '20 17:04 HunteRoi

it's work with me after deleting private notation in 'setPage' method in node_modules/jw-angular-pagination/lib/jw-pagination.component.d.ts

hamdirhibi avatar May 05 '20 22:05 hamdirhibi