Cannot build prod version of angular application due to some library

121 Views Asked by At

I added some library (ng2-semantic-ui) to my angular project and now when I build production version of application I got a lot of errors from this library.

(1,1): Directive SuiSearch, Property '_searchClasses' is private and only accessible within class 'SuiSearch<T>'.
(1,1): Directive SuiSearch, Property '_searchClasses' is private and only accessible within class 'SuiSearch<T>'.
(1,1): Directive SuiSearch, Property 'onFocusIn' is private and only accessible within class 'SuiSearch<T>'.
(1,1): Directive SuiSearch, Property 'onFocusOut' is private and only accessible within class 'SuiSearch<T>'.
node_modules/ng2-semantic-ui/dist/modules/search/components/search.d.ts.SuiSearch.html(12,5): Directive SuiSearchResult, Property '_optionClasses' is private and only accessible within class 'SuiSearchResult<T>'.
(1,1): Directive SuiSearchResult, Property '_optionClasses' is private and only accessible within class 'SuiSearchResult<T>'.
(1,1): Directive SuiPagination, Property '_paginationClasses' is private and only accessible within class 'SuiPagination'.
(1,1): Directive SuiPagination, Property '_paginationClasses' is private and only accessible within class 'SuiPagination'.

I found also reported bug in this library: https://github.com/edcarroll/ng2-semantic-ui/issues/432

Is it possible to ignore this problems in webpack configuration? Is it correct that webpack compile this library?

1

There are 1 best solutions below

1
dseroski On

I don't know exactly how your are declaring the library, but this might be a duplicate of: Property 'X' is private and only accessible within class 'xyzComponent'

https://github.com/angular/angular/issues/11422