Skip to content

fix(v8/core): Pass module into loadModule (#15139) #15166

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

Merged
merged 3 commits into from
Jan 27, 2025
Merged

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Jan 27, 2025

backport of #15139

jrandolf and others added 2 commits January 27, 2025 10:03
The `loadModule` function currently utilizes `require` to load modules
starting from the `@sentry/core` directory. This approach is
incompatible with package managers like pnpm, which do not hoist
dependencies. Consequently, when another module, such as @sentry/nextjs,
invokes `loadModule`, it fails to locate its own dependencies because
the search initiates within the @sentry/core tree.
@Lms24 Lms24 force-pushed the lms/backport-15139 branch from 60a874c to 6496582 Compare January 27, 2025 09:06
@Lms24 Lms24 marked this pull request as ready for review January 27, 2025 09:07
@Lms24 Lms24 requested review from lforst and AbhiPrasad January 27, 2025 09:07
@AbhiPrasad
Copy link
Member

Going to update this branch with develop to try to merge it in before cutting v8 release.

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.

4 participants