Please provide us with the following information:
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows 7
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.3.0
os: win32 x64
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
My question is here:
http://stackoverflow.com/questions/41405179/angular-cli-aot-compile-error
Normally this include a stack trace and some more information.
ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider rep
lacing the function or lambda with a reference to an exported function, resolving symbol Injectable in C:/ANGULAR PROJECTS/testNgCLI/node_modul
es/@angular/core/src/di/metadata.d.ts, resolving symbol OpaqueToken in C:/ANGULAR PROJECTS/testNgCLI/node_modules/@angular/core/src/di/opaque_t
oken.d.ts, resolving symbol OpaqueToken in C:/ANGULAR PROJECTS/testNgCLI/node_modules/@angular/core/src/di/opaque_token.d.ts
ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'C:ANGULAR PROJECTStestNgCLIapp1src'
@ ./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 'C:ANGULAR PROJECTStestNgCLIapp1src$$_gendir' in 'C:ANGULAR PROJECTStestNgCLIapp1node_modules@
angularcoresrclinker'
@ ./~/@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
Thanks! We'll be in touch soon.
Still waiting for an answer...:(
Ditto on this issue.
https://github.com/angular/angular-cli/issues/3854
There seems to be a possible clue here,
Same issue here
We don't currently support multiple app projects. You might not consider files outside of src to be a different project, but as far as the scope of the project is concerned they are.
If you want to add a reusable piece of code, consider adding it as a npm package. You don't need to upload it to npm, you can do npm install ../path/to/project/folder. You'll have to compile it using ngc and expose the AoT metadata though.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
Still waiting for an answer...:(