I have a test project where I try to use AoT compilation. With the last commit I've added typescript's path mapping:
"paths": {
"home/*": ["./app/home/*"]
},
usage:
import {HomeComponent} from 'home/home.component';
jit compilation works fine, but when trying to use AoT:
./node_modules/.bin/webpack --config webpack.config.aot.js
I am getting next error:
ERROR in Error encountered resolving symbol values statically. Could not resolve home/home.component relative to /home/sergey/projects/aot_test/src/app/app.module.ts., resolving symbol AppModule in /home/sergey/projects/aot_test/src/app/app.module.ts, resolving symbol AppModule in /home/sergey/projects/aot_test/src/app/app.module.ts
PS: I use Angular version 4.1.3 because it's current version of our project. I tried to update all packages in separate brunch, but it didn't help, the error remained.
PSS: Before the last commit AoT compilation was working.
I used incorrect path in tsconfig, it should be changed to:
JIT compilation worked because it ignores ts errors, unlike AoT.