I am making my custom module with angular-quickstart-lib. And when I run integration script, it throws error:
Error: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 15:23 in the original .ts file), resolving symbol MetrikaModule.forRoot in D:/Projects/Playground/ng-yandex-metrika/integration/node_modules/ng-yandex-metrika/ng-yandex-metrika.d.ts, resolving symbol AppModule in D:/Projects/Playground/ng-yandex-metrika/integration/src/ap p/app.module.ts, resolving symbol AppModule in D:/Projects/Playground/ng-yandex-metrika/integration/src/app/app.module.ts
My repo is here. You can see the module here and integration test here. To run integration test there is command npm run integration:aot
. Can anyone say why this error occurs?
There are a lot of questions on stackoverflow, but they didn't helped. I also have seen this.