Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initializers are not allowed in ambient contexts #39

Open
willianfalbo opened this issue Dec 17, 2019 · 1 comment
Open

Initializers are not allowed in ambient contexts #39

willianfalbo opened this issue Dec 17, 2019 · 1 comment

Comments

@willianfalbo
Copy link

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?

@willianfalbo
Copy link
Author

It seems to have a pull request to fix it.

IdentityModel/oidc-client-js#1019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant