You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently trying to integrate tslog in a nextjs api function. I stumbled upon an error where relevantCallSites turned out to be an array of 3 elements. Since the default for ignoreStackLevels seems to be 3, it makes sense that undefined cannot be evaluated.
I haven't yet tracked down why my callsites only have a length of 3 but in any case, it'd be better to check if relevantCallSites.length > 0 and not pass it down in case there is no CallSite left.
I am currently trying to integrate tslog in a nextjs api function. I stumbled upon an error where
relevantCallSites
turned out to be an array of 3 elements. Since the default forignoreStackLevels
seems to be3
, it makes sense thatundefined
cannot be evaluated.I haven't yet tracked down why my callsites only have a length of 3 but in any case, it'd be better to check if
relevantCallSites.length > 0
and not pass it down in case there is noCallSite
left.tslog/src/LoggerWithoutCallSite.ts
Lines 372 to 374 in 2e0d103
The text was updated successfully, but these errors were encountered: