top of page
Search
spelorascomva

Property-does-not-exist-on-type-string

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.












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





2 views0 comments

Recent Posts

See All

コメント


bottom of page