AOT support
See original GitHub issueBug, feature request, or proposal:
Hi I’m trying to compile my project in aot mode but it fail in 2 components with these errors:
ERROR in ./src/compiled/~/@angular/material/dialog/dialog-container.ngfactory.ts
Module parse failed: /Users/danielezurico/Desktop/molson/app-nest-molson-ui-promotions/src/compiled/node_modules/@angular/material/dialog/dialog-container.ngfactory.ts Unexpected token (29:9)
You may need an appropriate loader to handle this file type.
| import * as import20 from '@angular/core/src/linker/component_factory_resolver';
| export class Wrapper_MdDialogContainer {
| context:import0.MdDialogContainer;
| changed:boolean;
| /*private*/ _expr_0:any;
@ ./src/compiled/containers/components/wrapper/WrapperModule.ngfactory.ts 112:16-100
@ ./src/index.aot.ts
ERROR in ./src/compiled/~/@angular/material/snack-bar/snack-bar-container.ngfactory.ts
Module parse failed: /Users/danielezurico/Desktop/molson/app-nest-molson-ui-promotions/src/compiled/node_modules/@angular/material/snack-bar/snack-bar-container.ngfactory.ts Unexpected token (32:9)
You may need an appropriate loader to handle this file type.
| import * as import23 from '@angular/core/src/linker/component_factory_resolver';
| export class Wrapper_MdSnackBarContainer {
| context:import0.MdSnackBarContainer;
| changed:boolean;
| constructor(p0:any) {
@ ./src/compiled/containers/components/wrapper/WrapperModule.ngfactory.ts 113:16-106
@ ./src/index.aot.ts
ERROR in ./src/compiled/~/@angular/material/snack-bar/simple-snack-bar.ngfactory.ts
Module parse failed: /Users/danielezurico/Desktop/molson/app-nest-molson-ui-promotions/src/compiled/node_modules/@angular/material/snack-bar/simple-snack-bar.ngfactory.ts Unexpected token (23:9)
You may need an appropriate loader to handle this file type.
| import * as import14 from '../../common/src/directives/ng_if.ngfactory';
| export class Wrapper_SimpleSnackBar {
| context:import0.SimpleSnackBar;
| changed:boolean;
| constructor() {
@ ./src/compiled/containers/components/wrapper/WrapperModule.ngfactory.ts 114:16-103
@ ./src/index.aot.ts
ERROR in ./src/compiled/~/@angular/material/tooltip/tooltip.ngfactory.ts
Module parse failed: /Users/danielezurico/Desktop/molson/app-nest-molson-ui-promotions/src/compiled/node_modules/@angular/material/tooltip/tooltip.ngfactory.ts Unexpected token (29:62)
You may need an appropriate loader to handle this file type.
| import * as import20 from '@angular/core/src/animation/animation_player';
| import * as import21 from '@angular/core/src/security';
| class MdTooltipModuleInjector extends import0.NgModuleInjector<import1.MdTooltipModule> {
| _PortalModule_0:import2.PortalModule;
| _OverlayModule_1:import3.OverlayModule;
@ ./src/compiled/containers/components/wrapper/WrapperModule.ngfactory.ts 115:16-92
@ ./src/index.aot.ts
Version "@angular/material": "^2.0.0-alpha.10",
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Ahead-of-time (AOT) compilation - Angular
The Angular ahead-of-time (AOT) compiler converts your Angular HTML and TypeScript code ... The AOT compiler does not support function expressions and arrow ......
Read more >Initial AOT support in Spring Framework 6.0.0-M3
Initial AOT support in Spring Framework 6.0.0-M3 ... team has been working on native image support for Spring applications since 2019.
Read more >AWS announces native AOT tooling support for .NET ...
Today, we are excited to announce general availability of tooling support to build and deploy native AOT compiled .NET 7 applications to AWS ......
Read more >Support | Attack on Titan Wiki | Fandom
Support (支え Sasae) is the 1st chapter of the 29th volume and the 115th chapter overall of the Attack on Titan manga, ...
Read more >AOT - Mono Project
Supported Platforms#. AOT is only available in a few platforms: Mono:X86 · x86-64 · Mono:ARM. Reduced Startup Time ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Removing
include: /ClientApp/
fromwebpack.config.js
fixes the error for me. See more here: https://github.com/aspnet/JavaScriptServices/issues/1168#issuecomment-320026397did anyone solve this issue? now we are experiencing the same