DEV Community

cannot read property 'map' undefined

Ankita Basu on March 25, 2020

chunk {main} main.js, main.js.map (main) 2.1 kB [initial] [rendered] Cannot read pr...
Collapse
 
barelyhuman profile image
Reaper

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

Collapse
 
joelnet profile image
JavaScript Joel

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.

Collapse
 
flashnoob profile image
flashnoob

I think it's not an array