Skip to content

ref: Log warning when fallback binary import fails - #39

Merged
Lms24 merged 1 commit into
mainfrom
lms/ref-warning-on-fallback
Aug 4, 2026
Merged

ref: Log warning when fallback binary import fails#39
Lms24 merged 1 commit into
mainfrom
lms/ref-warning-on-fallback

Conversation

@Lms24

@Lms24 Lms24 commented Aug 4, 2026

Copy link
Copy Markdown
Member

closes getsentry/sentry-javascript#22970

When users use a non-LTS Node version, importCppBindingsModule() falls back to importing the binary identifier with an ABI level we don't support. Hence the require call crashes with a "Cannot find module" error. This PR try/catches the fallback import and logs a hint that non-LTS versions are not supported. Also changes the signature of importCppBindingsModule to also return undefined. We already guarded against this but this should make it more apparent.

@Lms24
Lms24 requested a review from timfish August 4, 2026 07:12
@Lms24 Lms24 changed the title ref: Log warning when fallback bindings import fails ref: Log warning when fallback binary import fails Aug 4, 2026
@Lms24
Lms24 merged commit d8eaee9 into main Aug 4, 2026
83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sentry node profiler crashen on non-LTS nodejs version

2 participants