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

Email Login Component Typescript error #114

Open
jacobweiss2305 opened this issue Oct 22, 2022 · 0 comments
Open

Email Login Component Typescript error #114

jacobweiss2305 opened this issue Oct 22, 2022 · 0 comments

Comments

@jacobweiss2305
Copy link

I am getting this error on localhost:4200 :
ERROR

src/app/user/email-login/email-login.component.html:23:36 - error TS2531: Object is possibly 'null'.

23 <mat-form-field [color]="email.valid && 'accent'">
~~~~~

src/app/user/email-login/email-login.component.ts:11:16
11 templateUrl: './email-login.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component EmailLoginComponent.

Here is the html:
image

Vscode suggests this:
image

I think it has something to do with the Typescript:
image

Link to my user module:
https://github.com/jacobweiss2305/kanban-app/tree/master/src/app/user

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