Angular2OidcClient
Angular2OidcClient copied to clipboard
Initializers are not allowed in ambient contexts
Hi guys,
I've just tried cloning the angular app v4 (https://github.com/jmurphzyo/Angular2OidcClient/tree/ng4) and then I ran "npm install" and "npm start" so, I'm getting the following errors:
ERROR in /home/myuser/Documents/repos/github/oidc-angular-client/node_modules/oidc-client/index.d.ts (41,26): Initializers are not allowed in ambient contexts.
/home/myuser/Documents/repos/github/oidc-angular-client/node_modules/oidc-client/index.d.ts (42,27): Initializers are not allowed in ambient contexts.
/home/myuser/Documents/repos/github/oidc-angular-client/node_modules/oidc-client/index.d.ts (43,26): Initializers are not allowed in ambient contexts.
/home/myuser/Documents/repos/github/oidc-angular-client/node_modules/oidc-client/index.d.ts (44,26): Initializers are not allowed in ambient contexts.
/home/myuser/Documents/repos/github/oidc-angular-client/node_modules/oidc-client/index.d.ts (45,27): Initializers are not allowed in ambient contexts.
/home/myuser/Documents/repos/github/oidc-angular-client/node_modules/oidc-client/index.d.ts (129,14): Cannot find name 'Partial'.
/home/myuser/Documents/repos/github/oidc-angular-client/node_modules/oidc-client/index.d.ts (164,22): Cannot find name 'Record'.
ERROR in /home/myuser/Documents/repos/github/oidc-angular-client/src/app/shared/services/auth.service.ts (62,37): Argument of type '(e: any) => void' is not assignable to parameter of type 'UserUnloadedCallback'.
I've tried many things I could not manage to fix this... Could help me please?
It seems to have a pull request to fix it.
https://github.com/IdentityModel/oidc-client-js/pull/1019