AOT error when importing module outside of src folder #5990
Labels
effort2: medium (days)
freq1: low
Only reported by a handful of users who observe it rarely
needs: investigation
Requires some digging to determine if action is needed
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
severity2: inconvenient
Bug Report or Feature Request (mark with an
x
)Versions.
@angular/cli: 1.0.0
node: 6.10.2
os: darwin x64
Repro steps.
Create module in
index.ts
:Import
index.ts
module insrc/app/app.module.ts
:Now
ng serve
works fine, butng build --prod
does not; it fails with this error:This worked fine before v1.0.0 in Angular 2.4. If I move the
index.ts
module tosrc/index.ts
and adjust the paths, then it works.Also,
ngc
doesn't complain. Any ideas what changed that caused this issue?The text was updated successfully, but these errors were encountered: