Skip to content

Commit f9244f3

Browse files
authored
ref(dev): Remove stacktrace limit on node errors in yarn scripts (#5650)
By default, Node errors only include the top 10 stackframes[1]. Given the number of frames taken up by internal node code (especially when async functions are involved), this very often means that frames which might actually tell us something are cut off. This solves that problem by removing the 10-frame limit for all errors thrown by node processes run through yarn. Note that this is a change which only affects our dev environment, not the SDK itself. [1] https://nodejs.org/api/errors.html#errorstacktracelimit
1 parent 9c94642 commit f9244f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.yarnrc

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
workspaces-experimental true
2+
env:
3+
NODE_OPTIONS --stack-trace-limit=10000

0 commit comments

Comments
 (0)