question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught TypeError: s.JitCompilerFactory is not a constructor

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.5.0-beta.4 node: 6.10.3 os: win32 x64 @angular/animations: 5.0.0-rc.1 @angular/common: 5.0.0-rc.1 @angular/compiler: 5.0.0-rc.1 @angular/core: 5.0.0-rc.1 @angular/forms: 5.0.0-rc.1 @angular/http: 5.0.0-rc.1 @angular/platform-browser: 5.0.0-rc.1 @angular/platform-browser-dynamic: 5.0.0-rc.1 @angular/router: 5.0.0-rc.1 @angular/cli: 1.5.0-beta.4 @angular/compiler-cli: 5.0.0-rc.1 @angular/language-service: 5.0.0-rc.1 typescript: 2.5.3

Repro steps.

  1. ng build --prod
  2. build successfully ( no error at all )
  3. serve the generated bundle from node.js
  4. application failed to load, and the error trace below displayed in the browser console.

note. ng build (without --prod) build and load fine.

The log given by the failure.

From browser console:

vendor.1ed5b021bd13a10b4eea.bundle.js:1 Uncaught TypeError: s.JitCompilerFactory is not a constructor at r (vendor.1ed5b021bd13a10b4eea.bundle.js:1) at Je (vendor.1ed5b021bd13a10b4eea.bundle.js:1) at Ye (vendor.1ed5b021bd13a10b4eea.bundle.js:1) at Qe (vendor.1ed5b021bd13a10b4eea.bundle.js:1) at new t (vendor.1ed5b021bd13a10b4eea.bundle.js:1) at Object._n [as createNgModuleRef] (vendor.1ed5b021bd13a10b4eea.bundle.js:1) at e.create (vendor.1ed5b021bd13a10b4eea.bundle.js:1) at vendor.1ed5b021bd13a10b4eea.bundle.js:1 at t.invoke (polyfills.63ab2a039111021d7498.bundle.js:1) at Object.onInvoke (vendor.1ed5b021bd13a10b4eea.bundle.js:1)

Desired functionality.

Should build and load fine in --prod mode as well.

Mention any other details that might be useful.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dsuwiryacommented, Oct 27, 2017

Closing this issue as I finally found out that this error is actually caused by “angular2-busy” component that I’m using. Thanks!

0reactions
angular-automatic-lock-bot[bot]commented, Sep 7, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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.
Read more >
Angular Uncaught TypeError: e is not a constructor after build
I have a problem while uploading my angular application to production . The application works just fine in development and used to work...
Read more >
TypeError: StoryblokClient is not a constructor : r/webdev
hey, as you can see here storyblokClient is definetly an object, however when I use it like that it throws this error (note:...
Read more >
Uncaught TypeError: viewclass is not a constructor - Odoo
Friends, I tried to disable create option in calendar view by inheriting the js like this, but its giving me the above Odoo...
Read more >
JitCompilerFactory - Angular
class JitCompilerFactory implements CompilerFactory { constructor(defaultOptions: CompilerOptions[]) createCompiler(options: CompilerOptions[] ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found