{"id":2,"hash":"dceacdf80c0894bdc49036202091b45db59d6225f00fe2aedb8550d40e03524c","pattern":"TypeError: Cannot read properties of undefined","full_message":"TypeError: Cannot read properties of undefined (reading 'map')","ecosystem":"npm","package_name":null,"package_version":null,"solution":"The value you are accessing is `undefined` at runtime.\n1. Guard with optional chaining: `obj?.prop?.map(...)`\n2. Default the array: `(items ?? []).map(...)`\n3. Verify the data has been fetched / state initialised before the render.","confidence":0.9,"source":"community","source_url":null,"votes":25,"created_at":"2026-04-19T02:03:59.585041+00:00","updated_at":"2026-04-19T02:03:59.585041+00:00"}