angular2-busy icon indicating copy to clipboard operation
angular2-busy copied to clipboard

Uncaught TypeError: s.JitCompilerFactory is not a constructor

Open dsuwirya opened this issue 8 years ago • 16 comments

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)

dsuwirya avatar Oct 27 '17 15:10 dsuwirya

Did you found any workaround ?

osixia avatar Nov 02 '17 14:11 osixia

same problem here. im using tixif-ngx-busy library. but still the same issue

mavm84 avatar Nov 03 '17 19:11 mavm84

Same here

felipefialho avatar Nov 07 '17 13:11 felipefialho

I am also getting the same problem with tixif-ngx-busy

Sathishchary avatar Nov 10 '17 09:11 Sathishchary

I have migrated to ngx-loading

felipefialho avatar Nov 10 '17 13:11 felipefialho

I found this issue https://github.com/angular/angular/issues/20125

Xepe avatar Nov 22 '17 03:11 Xepe

looks like they already fixed it https://github.com/angular/angular/pull/20478 but still there is not a release

Xepe avatar Nov 23 '17 04:11 Xepe

It was released in 5.1.0-beta.2 but I still see the error.

jackjamieson avatar Nov 27 '17 14:11 jackjamieson

same here, 5.1.0-beta.2 and I still get: image

Sky4CE avatar Nov 27 '17 16:11 Sky4CE

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.

Xepe avatar Nov 27 '17 18:11 Xepe

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 avatar Nov 28 '17 20:11 Sky4CE

@Sky4CE awesome! 2 days of headaches gone just like that

shaolinshaosson avatar Nov 29 '17 07:11 shaolinshaosson

@Xepe This is what i get now with the version "tixif-ngx-busy": "0.0.8" on amngular 5 project

img_05012018_115202_0

mavm84 avatar Jan 05 '18 16:01 mavm84

Hello, Made a angular 5 AOT --prod compatible version for angular-busy with option for custom template https://github.com/tiberiuzuld/angular-busy

tiberiuzuld avatar Jan 06 '18 19:01 tiberiuzuld

Any chance this gets resolved?

tarator avatar Feb 15 '18 12:02 tarator

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?

rajkumar-patidar avatar Aug 24 '18 12:08 rajkumar-patidar