throwing aot compilation errors when included in external project
hakhan88 opened this issue · 4 comments
three errors below are causing the AOT built to fail when AOT is enabled.
-
ERROR in node_modules\spring-flo\out-tsc\spring-flo.d.ts.EditorComponent.html(12,9): : Directive ResizerDirective, Property 'startDrag' is private and only accessible within class 'ResizerDirective'.
-
node_modules\spring-flo\out-tsc\spring-flo.d.ts.DynamicFormPropertyComponent.html(30,21): : Property 'options' does not exist on type 'ControlModel'.
-
node_modules\spring-flo\out-tsc\spring-flo.d.ts.DynamicFormPropertyComponent.html(34,48): : Property 'language' does not exist on type 'ControlModel'.
suggestions:
- make startDrag public rather than private
- access 'options' as object['options'] rather than object.options
- access 'options' as object['language'] rather than object.language
please let me know should you require more info on this issue
thanks
Flo is always included in external projects as it is just a lib. It's included in https://github.com/spring-cloud/spring-cloud-dataflow-ui and works fine as far as I know.
How are you making a dependency on Flo?
"spring-flo": "0.8.9", including this in the package of the project and building it with AOT enabled after 'npm i'
ok i'll submit a fix for this. thanks