-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Please provide us with the following information:
OS?
Ubuntu 16.04 Linux Mint 18.1
Versions.
Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand paste the result here:
angular-cli: 1.0.0-beta.24
node: 7.2.1
os: linux x64
@angular/common: 2.4.0
@angular/compiler: 2.4.0
@angular/core: 2.4.0
@angular/forms: 2.4.0
@angular/http: 2.4.0
@angular/platform-browser: 2.4.0
@angular/platform-browser-dynamic: 2.4.0
@angular/router: 3.3.1
@angular/compiler-cli: 2.3.1
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
ng build -prod --aot
ng build --aot
The log given by the failure.
Normally this include a stack trace and some more information.
Time: 7649ms
chunk {0} main.117bc7f89a641eb460be.bundle.js, main.117bc7f89a641eb460be.bundle.map (main) 1.15 kB {2} [initial] [rendered]
chunk {1} styles.0d70df7dda13fb01d123.bundle.css, styles.0d70df7dda13fb01d123.bundle.map, styles.0d70df7dda13fb01d123.bundle.map (styles) 1.69 kB {3} [initial] [rendered]
chunk {2} vendor.078bc367dec701b1150c.bundle.js, vendor.078bc367dec701b1150c.bundle.map (vendor) 1.06 MB [initial] [rendered]
chunk {3} inline.4357686ae3fba1b6d5e7.bundle.js, inline.4357686ae3fba1b6d5e7.bundle.map (inline) 0 bytes [entry] [rendered]
ERROR in this.host.isSourceFile is not a function
ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/home/alex/Dev/ng2/learn/playng/src'
@ ./src/main.ts 4:0-74
@ multi main
ERROR in ./~/@angular/core/src/linker/system_js_ng_module_factory_loader.js
Module not found: Error: Can't resolve '/home/alex/Dev/ng2/learn/playng/src/$$_gendir' in '/home/alex/Dev/ng2/learn/playng/node_modules/@angular/core/src/linker'
@ ./~/@angular/core/src/linker/system_js_ng_module_factory_loader.js 69:15-36 85:15-102
@ ./~/@angular/core/src/linker.js
@ ./~/@angular/core/src/core.js
@ ./~/@angular/core/index.js
@ ./src/main.ts
@ multi main
Mention any other details that might be useful.
repo link: https://github.com/Codenator81/tour-of-heroes-angularfire2
live site: https://n2play-ee2bb.firebaseapp.com/
it worked without --aot parametr
Thanks! We'll be in touch soon.