Adding ngx-translate to angular-seed results in errors during aot build execution

91 Views Asked by At

I added ngx-translate to my angular-seed project. Running it normally (npm start) or on production build (npm run build.prod) works fine. Running aot build using npm run build.prod.aot results in errors during execution. An error log of the console is shown below:

enter image description here

I have created a fork with a minimal reproduction of the problem: https://github.com/kubica/angular-seed. Also look at this commit to check if i missed something.

The angular-seed-advances project contains ngx-translate, too and the aot build works without any trouble but i could not figure out what's the exactly difference.

Anybody got an idea what i'm doing wrong?

0

There are 0 best solutions below