i have 2 very simple custom functions.
to sum the total of a column in an app state cart list
to check if a product id exists in the appstate cart list
the problem is that the totalsum function works fine but when i add another function e.g. checkproduct function then it suddenly finds errors in the new function as well as the other function. yet when i delete the new function then everything works again. But sometimes when i delete the new function the old one shows errors all together constantly. have to delete everything and start again.
both these functions work perfectly well in another app but i cant seem to get them to work in my new app.
and then sometimes it work and suddenly it stops working the next day. VERY FRUSTRATING