Next.js Discord

Discord Forum

How to see full stack traces?

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Avatar
Cape lionOP
A couple of times a week I come across an error like the following

⨯ ./node_modules/postgres/src/connection.js:1:1
Module not found: Can't resolve 'net'
1 | import net from 'net'
| ^^^^^^^^^^^^^^^^^^^^^
2 | import tls from 'tls'
3 | import crypto from 'crypto'
4 | import Stream from 'stream'

the stack trace is pretty useless because it doesn't lead back to any application code let alone give an idea of where call stack originated. In this case you can guess that the error is due to the code running on edge but often you need more information (there's a reason stacktraces are ubiquitous across languages/frameworks). Is there any way to enable full stacktraces with nextjs or is the information just missing?

0 Replies