-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unexpected closing brace error from import-in-the-middle #12807
Comments
Handling of native modules needs improving in |
Thanks @timfish, if it is just a warning, I'm wondering why it's causing WebSocketShard: Compression is enabled but zlib-sync is not installed, falling back to identify compress I've taken a brief look at the const getZlibSync = lazy(async () => import('zlib-sync').then((mod) => mod.default).catch(() => null)); |
A fix was release in You can either delete your lock file and reinstall or |
That works, thanks for your help on this! As an aside, do we know why the warning actually affected |
We changed
Catching these errors helps SDK users get on with their work but we still log them as warnings because then users open helpful issues like this one which let us know where |
Right, but in this case the warning in const getZlibSync = lazy(async () => import('zlib-sync').then((mod) => mod.default).catch(() => null)); |
If the issue is still reproducible with v1.9.1, I would open a new issue. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
8.15.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup/Reproduction Example
No response
Steps to Reproduce
Branching off this issue, when running
import-in-the-middle
v1.8.1, I'm getting the following error:This causes this from
discord.js
:It still occurs with
import-in-the-middle
v1.9.0, but as a warning, this is the output with--trace-warnings
enabled:Expected Result
N/A
Actual Result
N/A
The text was updated successfully, but these errors were encountered: