Open sanjarcode opened 1 year ago
Explore more:
node_modules
traces, or limit them to a small number## Solution Use the CLI option 1. Direct `node` - `NODE_OPTIONS='--stack-trace-limit=0' node myApp.js` 2. npm script - `NODE_OPTIONS='--stack-trace-limit=0' npm myStart` Optional: you change the value (zero here). Negative values print less, and positive prints more. For example - setting to 10 will print only the first 10 `node_modules` errors. Source: https://nodejs.org/api/cli.html ## Override default stack size (the actual problem) Node limts the default error stack size (number of errors). To print all errors, run the following: ```sh NODE_OPTIONS='--trace-warnings --stack-trace-limit=100000' node app.js ``` Optional: You can replace 100000 to set the limit.
has some issues, will fix
Example
Note: this may impact performance. Use with caution