tanepiper / ngx-tinynodes

Monorepo for components released on NPM @tinynodes
https://tanepiper.github.io/ngx-tinynodes/
Other
38 stars 16 forks source link

NGX-EditorJS AOT error #18

Closed mckibbe closed 4 years ago

mckibbe commented 4 years ago

I am struggling to get this library working with AOT. It works fine using JIT, but whenever I add the --aot flag I get the following error:

ERROR Error: Uncaught (in promise): TypeError: this.editorJs is not a constructor TypeError: this.editorJs is not a constructor at NgxEditorJSService. (tinynodes-ngx-editorjs.js:192) at Generator.next () at tslib.es6.js:73 at new ZoneAwarePromise (zone-evergreen.js:872) at __awaiter (tslib.es6.js:69) at tinynodes-ngx-editorjs.js:190 at ZoneDelegate.invoke (zone-evergreen.js:365) at Zone.run (zone-evergreen.js:124) at NgZone.runOutsideAngular (core.js:39572) at NgxEditorJSService. (tinynodes-ngx-editorjs.js:187) at resolvePromise (zone-evergreen.js:793) at zone-evergreen.js:707 at rejected (tslib.es6.js:71) at ZoneDelegate.invoke (zone-evergreen.js:365) at Object.onInvoke (core.js:39699) at ZoneDelegate.invoke (zone-evergreen.js:364) at Zone.run (zone-evergreen.js:124) at zone-evergreen.js:851 at ZoneDelegate.invokeTask (zone-evergreen.js:400) at Object.onInvokeTask (core.js:39680)

Any suggestions? Thanks!

tank104 commented 4 years ago

This looks like the same bug I just logged. Does it not support AOT?

CarlosValencia78 commented 3 years ago

Has anyone found a solution for this?