Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

AoT support? #2

Closed
BorntraegerMarc opened this issue Mar 6, 2017 · 5 comments
Closed

AoT support? #2

BorntraegerMarc opened this issue Mar 6, 2017 · 5 comments

Comments

@BorntraegerMarc
Copy link

When using the paper-input-directive from here: https://github.com/hydraslay/ng2-polymer-static and build the project with AoT, then I get the following error:

ERROR in Cannot determine the module for class PaperInputReloadConfigurationDirective in D:/projects/test-angular/src/app/paper-input-directives.ts!

ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'D:\projects\test-angular\src'
 @ ./src/main.ts 4:0-74
 @ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts

Is Ahead of Time compilation supported with these directives?

@hydraslay
Copy link
Owner

@BorntraegerMarc

  1. did you use the directive file in another project? If you use , you should define the module as the project 'ng2-polymer-static' did.

  2. I don't know why the ngfactory will not be resolved, but I found someone's error was similar to yours ng build -prod Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' angular/angular-cli#4551 . Hope it help.

@BorntraegerMarc
Copy link
Author

@hydraslay so you got it to work for AoT?

@hydraslay
Copy link
Owner

@BorntraegerMarc
Actually I just realized what did you mean of 'AoT', as I may know not much than you.
No, this project dose not support AoT.
The Polymer itself has not be AoT compiled.

I just build this project with ng build but I got same error when ng build --aot.

This project was only made for solve the lambda expression while importing polymer was not supported by webpack problem.

@BorntraegerMarc
Copy link
Author

Thanks for the answer

@hydraslay
Copy link
Owner

@BorntraegerMarc Yes , AOT is available now :)

check the repository if you still be interested in it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants