What's the best way to debug `Buffer is not defined`
Hey folks,
I am currently trying to re-restructure my code a bit, so it becomes more maintainable. One thing I noticed, is that I sometimes receive a
This happened for example, when I accidentally put a module inside one of my routes sub-directories which wasn't a module and just contained some stuff to be consumed. However I also seem to get the issue, when I export server-specific functions in various places.
Generally there seem to be various sources leading to this error.
Is there a good way to debug this and to make finding the cause of the issue easier than carefully reading my code and using trial and error?
Thanks in advance!
I am currently trying to re-restructure my code a bit, so it becomes more maintainable. One thing I noticed, is that I sometimes receive a
Buffer is not defined runtime error inside the browser when moving things.This happened for example, when I accidentally put a module inside one of my routes sub-directories which wasn't a module and just contained some stuff to be consumed. However I also seem to get the issue, when I export server-specific functions in various places.
Generally there seem to be various sources leading to this error.
Is there a good way to debug this and to make finding the cause of the issue easier than carefully reading my code and using trial and error?
Thanks in advance!
