Open peacefulotter opened 9 months ago
@Jarred-Sumner As discussed on discord, here is the issue! :)
Reviving this issue as this is still relevant and, imo, important
For any contributors
I think the way to fix this is to add a throwResolutionError
lambda in here, which would call createSyntaxError
but add a dependencies
or dependents
array of keys
I do wonder if there's some way to make this work via interpreter
I have the same bug today. How can i fix it ?
What version of Bun is running?
1.0.18+36c316a24
What platform is your computer?
Linux 6.2.0-37-generic x86_64 x86_64
What steps can reproduce the bug?
Inside your project, use a symlink or use
npm i -S ../other-project/
. Import the "other-project" and throw an error in it.What is the expected behavior?
The stacktrace resolves and shows the proper paths.
What do you see instead?
Bun will print a stacktrace where the paths of the stacktrace just say a bunch of
link
. Example:Not only it just prints a bunch of links, but, even without symlinks, I have encountered many times a stack trace that will just print the error and only then contain the
processTicksAndRejections
without anything else - not very useful.Additional information
No response