Skip to content

AOT support #1925

@daniele-zurico

Description

@daniele-zurico

Bug, 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",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions