-
-
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
Incompatible with SWC loader #12371
Comments
Does it work with the loaders the other way around?
|
I can't even get it to work without With
Gives me
|
Yes, that's an issue with version 1.9.1. you have to downgrade to 1.9.0. |
For reference: swc-project/swc-node#785 |
I get the same error with v1.9.0 and v1.8.0 with Node v22 |
I tested using Node v22.2.0, @swc-node/register 1.9.0, and import-in-the-middle 1.8.0. The order of the loaders indeed makes a difference. Importing the JavaScript module before the SWC loader solves the |
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.7.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
node --import @swc-node/register/esm-register --import ./instrument.js ./src/main.ts
Expected Result
The main.ts file should be correctly executed.
Actual Result
I also tried with
import-in-the-middle
1.8.0 without success. Removing the instrument.js import resolves the issue.Related: swc-project/swc-node#785
The text was updated successfully, but these errors were encountered: