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 Mar 19

Are early-stage startups "dead-by-default" when Coronavirus is causing significant harm to the world’s economy?

Today the Coronavirus outbreak has plunged the world's economy into a global recession, which will cause a period of a global economic slowdown.

Ankita Basu profile image
Intern at Meltwater Solutions

Sore eyes?

dev.to now has dark mode.

Go to the "misc" section of your settings and select night theme ❀️