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)
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!