Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build with Angular-CLI in prod mode #39

Open
zachallen opened this issue Jan 18, 2018 · 2 comments
Open

Unable to build with Angular-CLI in prod mode #39

zachallen opened this issue Jan 18, 2018 · 2 comments

Comments

@zachallen
Copy link

Cloning https://github.com/Adobe-Marketing-Cloud/target-atjs-extensions/tree/master/demos/examples/angular2/directive and running an ng build --prod results in:

ERROR in <WORKSPACE>/target-atjs-extensions/demos/examples/angular2/directive/src/$$_gendir/app/app.component.ngfactory.ts (11,21): Cannot find module 'target-ng-module'.

ERROR in <WORKSPACE>/target-atjs-extensions/demos/examples/angular2/directive/src/$$_gendir/node_modules/@adobe/target-ng-module/target-ng-module.ngfactory.ts (10,21): Cannot find module 'target-ng-module'.

ERROR in <WORKSPACE>/target-atjs-extensions/demos/examples/angular2/directive/src/$$_gendir/app/app.module.ngfactory.ts (15,21): Cannot find module 'target-ng-module'.

ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '<WORKSPACE>/target-atjs-extensions/demos/examples/angular2/directive/src'
 @ ./src/main.ts 3:0-74
 @ multi ./src/main.ts
@XDex
Copy link
Contributor

XDex commented Jan 18, 2018

@zachallen Just took a quick look - this seems to be a problem with AOT compilation in recent angular-cli. Disabling AOT fixed it (ng build -prod -aot false), however if you really need AOT, feel free to try some possible fixes suggested in this issue: angular/angular-cli#4551

@revsystems-2018
Copy link

Queremos ejecutar con AOT y tu lo cancelas.. que estupidez..!

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

No branches or pull requests

3 participants