This is a project ro reproduce this issue:
NativeScript/nativescript-angular#2238
[Angular 10] - Function calls are not supported in decorators but 'NativeScriptRouterModule' was called #2238
ERROR in Error during template compile of 'AppRoutingModule' Function calls are not supported in decorators but 'NativeScriptRouterModule' was called.