Skip to content

Email Login Component Typescript error #114

Description

@jacobweiss2305

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions