angular - Is a "src" dir required under the top-level ng2 app dir for aot? -
i'm trying app running aot
per documentation: https://angular.io/guide/aot-compiler
i execute following aot
compile command 'myapp' dir:
"node_modules/.bin/ngc" -p ./ng2/tsconfig-aot.json
and returned following error:
error file 'c:/code/myapp/ng2/src/app/app.module.ts' not found.
it looks command expecting 'src' dir first subdir under main ng2
app dir. ng2
app exists within context of parent .net mvc
app, has lot of own special dirs. suspect default ng2
parent app dir named 'src' , causing confusion in up.
do know if there's command option can pass exclude 'src' dir path compiler attempting execute against? or if there's aot
workaround or if i'm doing incorrectly here?
check files
property in tsconfig-aot.json
. in guide, looks this:
"files": [ "src/app/app.module.ts", "src/main.ts" ]
assuming haven't changed these, explain path requiring src
. in case, can update them correct locations according app structure.
Comments
Post a Comment