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.

Can't compile with Angular 9 (next7)

See original GitHub issue

'agm-map' is not a valid HTML element.

Also, even though I serve my application in AOT mode, I get this error message in the console when I have the AgmCoreModule imported. (Nothing else, just the Module import)

main.ts:12 Error: Angular JIT compilation failed: '@angular/compiler' not loaded!
  - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.
  - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?
  - Alternatively provide the compiler with 'import "@angular/compiler";' before bootstrapping.
    at getCompilerFacade (core.js:542)
    at convertDependencies (core.js:16371)
    at reflectDependencies (core.js:16363)
    at Function.get (core.js:16484)
    at getInjectableDef (core.js:361)
    at injectableDefOrInjectorDefFactory (core.js:17198)
    at providerToFactory (core.js:17318)
    at providerToRecord (core.js:17263)
    at R3Injector.processProvider (core.js:17084)
    at core.js:17049

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Nov 12, 2019

Ok, it seems to work with rc.1. If anyone is still having problems, message here and I’ll reopen

0reactions
hiepxanhcommented, Oct 22, 2019

it only work if I add import '@angular/compiler'; to main.ts. What’s wrong?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't compile with Angular 9 (next7) · Issue #1728 - GitHub
main.ts:12 Error: Angular JIT compilation failed: '@angular/compiler' not loaded! - JIT compilation is discouraged for production use-cases!
Read more >
angular 9 fails to bind when aot compile is used - Stack Overflow
It seems that the inline html declared in the template cannot be set this way. Placing the html into it's own file and...
Read more >
Angular compiler options
When you use ahead-of-time compilation (AOT), you can control how your application is compiled by specifying template compiler options in the TypeScript ...
Read more >
Guide Leading Up to Angular 9.0.0 Release - HUSPI
Changes up to Angular 9.0.0, including bug fixes, breaking changes, deprecations, code refactoring, features, and performance improvements.
Read more >
jest-preset-angular - Bountysource
2, npm install fails ERESOLVE unable to resolve dependency tree ... 9.0.0-next.6 was working, next.7 gives TypeError: Cannot read property 'before' of ...
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