You have declared data as string[] string array, but it should be of any type and you are accessing the property of that data as data.userName.
DOWNLOAD: https://byltly.com/2f9tet
DOWNLOAD: https://byltly.com/2f9tet
property-does-not-exist-on-type-string
Jun 23, 2021 — Property value does not exist on type EventTarget . TypeScript compiler error message. The first error occurs because the type of the target object .... You have to wrap your properties inside of object: function createCustomer(name: string, id: number, age: number, city: string) { customer.push({ name, id, age, ... 939c2ea5af
コメント