Skip to content
loading...

cannot read property 'map' undefined

github logo ・1 min read  

enter image description here

The above is the error I am getting. I am not able to resolve it because I am not getting in which file it is happening.

The following is my component.ts file:

<div class="loginBody">
    <div class="login-page">
        <img src="./assets/logo.png" id="logo">
        <form [formGroup]="signin">

            <mat-form-field id="email">

                <input matInput placeholder="@meltwater.com"
…

this is a link to stack-over flow please help me with the problem

twitter logo DISCUSS (3)
markdown guide
 

You're definitely hiding the actual code that has cause the error.
for example you are using material tags but I don't see any material module imported in the app.module.ts and the build would have failed already.

other, you are hiding the routes that are being used in the application and one of the components for that route is probably breaking.

If you actually share the real code, we might be able to help you out

 

The error is not in the code you have shared. You will need to share a public github repo so people can check out the entire project to help further.

 
Classic DEV Post from Feb 14

CSS in JS - have we done something wrong?

Hello folks, its not standard for me article, as I prefer to not get into these kind of discussions,...

Ankita Basu profile image
Intern at Meltwater Solutions