Uncaught TypeError: s.JitCompilerFactory is not a constructor
Steps to reproduce:
- create a new project using Angular-CLI v1.5.0-rc.5.
- update Angular to v5.0.0-rc.7.
- use angular2-busy v2.0.4.
- use typescript v2.5.3.
- build in prod mode "ng build --prod"
- serve the generated prod dist.
Problem:
- application failed to load with the following exception:
ERROR TypeError: s.JitCompilerFactory is not a constructor at r (main.a08c460ef0eff4bf7a1b.bundle.js:1) at dn (main.a08c460ef0eff4bf7a1b.bundle.js:1) at hn (main.a08c460ef0eff4bf7a1b.bundle.js:1) at pn (main.a08c460ef0eff4bf7a1b.bundle.js:1) at e.LMZF.e.get (main.a08c460ef0eff4bf7a1b.bundle.js:1) at Gn (main.a08c460ef0eff4bf7a1b.bundle.js:1) at Kn (main.a08c460ef0eff4bf7a1b.bundle.js:1) at Hn (main.a08c460ef0eff4bf7a1b.bundle.js:1) at Ar (main.a08c460ef0eff4bf7a1b.bundle.js:1) at Cr (main.a08c460ef0eff4bf7a1b.bundle.js:1)
Did you found any workaround ?
same problem here.
im using tixif-ngx-busy library. but still the same issue
Same here
I am also getting the same problem with tixif-ngx-busy
I have migrated to ngx-loading
I found this issue https://github.com/angular/angular/issues/20125
looks like they already fixed it https://github.com/angular/angular/pull/20478 but still there is not a release
It was released in 5.1.0-beta.2 but I still see the error.
same here, 5.1.0-beta.2 and I still get:

Hello guys, I didn't know that 5.1.0-beta.2 was released.
I did a release of https://www.npmjs.com/package/tixif-ngx-busy, it should work now, but it is in beta so i am not sure about the issues in AOT compilation.
Regards.
Guys, I have workaround, I have forked lib and refactored it to not use dynamic template creation, if you ok with template by default then you can use my fork it will work with angular 5 AOT build, you can use it like this:
"dependencies": {
"angular2-busy": "https://github.com/Sky4CE/angular2-busy/tarball/static-template",
@Sky4CE awesome! 2 days of headaches gone just like that
@Xepe This is what i get now with the version "tixif-ngx-busy": "0.0.8" on amngular 5 project

Hello, Made a angular 5 AOT --prod compatible version for angular-busy with option for custom template https://github.com/tiberiuzuld/angular-busy
Any chance this gets resolved?
ERROR TypeError: compiler_1.JitCompilerFactory is not a constructor at createJitCompiler (busy.module.js:37) at callFactory (core.js:8438) at createProviderInstance (core.js:8396) at resolveNgModuleDep (core.js:8356) at NgModuleRef.push../node_modules/@angular/core/fesm5/core.js.NgModuleRef.get (core.js:9064) at resolveDep (core.js:9429) at createClass (core.js:9303) at createDirectiveInstance (core.js:9186) at createViewNodes (core.js:10406) at createRootView (core.js:10320) View_BusyComponent_Host_0 @ BusyComponent_Host.ngfactory.js? [sm]:1 proxyClass @ compiler.js:10168 push../node_modules/@angular/core/fesm5/core.js.DebugContext_.logError @ core.js:11313 push../node_modules/@angular/core/fesm5/core.js.ErrorHandler.handleError @ core.js:1719 (anonymous) @ core.js:4588 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:388 push../node_modules/zone.js/dist/zone.js.Zone.run @ zone.js:138 push../node_modules/@angular/core/fesm5/core.js.NgZone.runOutsideAngular @ core.js:3783 push../node_modules/@angular/core/fesm5/core.js.ApplicationRef.tick @ core.js:4588 (anonymous) @ core.js:4473 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:388 onInvoke @ core.js:3824 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:387 push../node_modules/zone.js/dist/zone.js.Zone.run @ zone.js:138 push../node_modules/@angular/core/fesm5/core.js.NgZone.run @ core.js:3738 next @ core.js:4473 schedulerFn @ core.js:3555 push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:195 push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:133 push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:77 push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:54 push../node_modules/rxjs/esm5/internal/Subject.js.Subject.next @ Subject.js:47 push../node_modules/@angular/core/fesm5/core.js.EventEmitter.emit @ core.js:3539 checkStable @ core.js:3793 onLeave @ core.js:3860 onInvokeTask @ core.js:3818 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ zone.js:420 push../node_modules/zone.js/dist/zone.js.Zone.runTask @ zone.js:188 push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask @ zone.js:496 invokeTask @ zone.js:1540 globalZoneAwareCallback @ zone.js:1566 BusyComponent_Host.ngfactory.js? [sm]:1 ERROR CONTEXT DebugContext {view: {…}, nodeIndex: 1, nodeDef: {…}, elDef: {…}, elView: {…}}
Getting this error how can i fixed this?