array.map() on build - loading data
Unanswered
Toyger posted this in #help-forum
ToygerOP
Hi guys!
I've run into a problem where array.map() doesn't work on my vercel build but works perfectly on local host.
I'm having an array as a constant in a client file, using map to build a component for each of them. Why might this induce a problem for the build?
I am having a list of items, and want to show cards for each item. Each item should be selectable to send that item to an API.
I'm new to vercel and typescript
Thanks for any help!
I've run into a problem where array.map() doesn't work on my vercel build but works perfectly on local host.
I'm having an array as a constant in a client file, using map to build a component for each of them. Why might this induce a problem for the build?
I am having a list of items, and want to show cards for each item. Each item should be selectable to send that item to an API.
I'm new to vercel and typescript
Thanks for any help!
2 Replies
try
array?.map()?and what is client file?