Error encountered resolving symbol values statically
SamVerschueren opened this issue · comments
After upgrading my dependencies to angular@2.4
. I started receiving the following error when I do AoT compilation.
Error: Error encountered resolving symbol values statically. Could not resolve aspect.js relative to /Users/sam/Projects/pridiktiv/
frontend/medapp/dist/tmp/app/shared/async-services/aws.async-service.ts.
I import Aspect.js like this
import { Wove } from 'aspect.js';
And I can resolve the issue by importing it like this
import { Wove } from 'aspect.js/aspect.js';
I use your seed project so I upgraded my compile.ahead.prod.ts
to the one in the Seed project.
Do you have any ideas as to what is causing this issue? It worked perfectly before I did the upgrade. Don't have any issues with other libraries either.
The main file in the seed's SystemJS configuration is not set.
It doesn't use the SystemJS config when running AoT, or is it?
I mean while running the build step off course.
@SamVerschueren I believe this is an issue in the @angular/compiler-cli
.
- Here's the issue I opened angular/angular#14663.
- Here's PR with fix angular/angular#14664.