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

@aws-amplify/ui-angular@v2 doesn't support strict mode #889

Closed
wlee221 opened this issue Nov 26, 2021 · 0 comments · Fixed by #890
Closed

@aws-amplify/ui-angular@v2 doesn't support strict mode #889

wlee221 opened this issue Nov 26, 2021 · 0 comments · Fixed by #890
Labels
Angular An issue or a feature-request for Angular platform Authenticator An issue or a feature-request for an Authenticator UI Component bug Something isn't working

Comments

@wlee221
Copy link
Contributor

wlee221 commented Nov 26, 2021

Building an app with strict: true will fail with:

Error: ../../node_modules/@aws-amplify/ui/dist/index.d.ts:37:44 - error TS2339: Property 'loginMechanisms' does not exist on type '{ loginMechanisms?: ("username" | "email" | "phone_number")[] | undefined; signUpAttributes?: SignUpAttribute[] | undefined; socialProviders?: SocialProvider[] | undefined; } | undefined'.

37     loginMechanisms: AuthContext['config']['loginMechanisms'];
                                              ~~~~~~~~~~~~~~~~~
../../node_modules/@aws-amplify/ui/dist/index.d.ts:38:44 - error TS2339: Property 'socialProviders' does not exist on type '{ loginMechanisms?: ("username" | "email" | "phone_number")[] | undefined; signUpAttributes?: SignUpAttribute[] | undefined; socialProviders?: SocialProvider[] | undefined; } | undefined'.

38     socialProviders: AuthContext['config']['socialProviders'];
                                              ~~~~~~~~~~~~~~~~~
../../node_modules/@aws-amplify/ui/dist/index.d.ts:49:44 - error TS2339: Property 'loginMechanisms' does not exist on type '{ loginMechanisms?: ("username" | "email" | "phone_number")[] | undefined; signUpAttributes?: SignUpAttribute[] | undefined; socialProviders?: SocialProvider[] | undefined; } | undefined'.

49     loginMechanisms: AuthContext['config']['loginMechanisms'];
                                              ~~~~~~~~~~~~~~~~~
../../node_modules/@aws-amplify/ui/dist/index.d.ts:50:44 - error TS2339: Property 'socialProviders' does not exist on type '{ loginMechanisms?: ("username" | "email" | "phone_number")[] | undefined; signUpAttributes?: SignUpAttribute[] | undefined; socialProviders?: SocialProvider[] | undefined; } | undefined'.

50     socialProviders: AuthContext['config']['socialProviders'];
@wlee221 wlee221 added Angular An issue or a feature-request for Angular platform Authenticator An issue or a feature-request for an Authenticator UI Component ready-for-planning labels Nov 26, 2021
@Milan-Shah Milan-Shah added the bug Something isn't working label Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Angular An issue or a feature-request for Angular platform Authenticator An issue or a feature-request for an Authenticator UI Component bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants