-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SWC Core throws / prints (misleading) error #8944
Comments
@davidmurdoch I am seeing the same behavior related to sentry. The issue is (of course)
But inspecting the installed module, the source maps do not exist. |
Closing as duplicate |
@kdy1 duplicate to what? |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
We are receiving hundreds of errors in our console using TSUP + @swc/core:
These errors seem to be thrown when the corresponding
.js.map
file is missing from the bundled sources.It would be nice if
@swc/core
printed a more meaningful error message.Note: I have no idea how to produce a repro, but I've spent a fair bit of time debugging this with console.log and I am relatively confident that this is the case.
Input code
No response
Config
No response
Playground link (or link to the minimal reproduction)
https://github.com/egoist/tsup/blob/00188a0dc848c48fac45de245d1e021f370a84a3/src/esbuild/swc.ts#L31-L49
SWC Info output
No response
Expected behavior
If an error is to be thrown / printed, print something more descriptive to the issue as well as a little more context.
Actual behavior
No response
Version
1.5.5
Additional context
Possibly related:
#8879
#8910
#8789 (comment)
Less likely related but will link anyways:
#8628
The text was updated successfully, but these errors were encountered: