Skip to content

Undocumented removal of default export in v8 #12013

Description

@MattIPv4

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.0.0

Framework Version

No response

Link to Sentry event

No response

SDK Setup

N/A

Steps to Reproduce

npm init -y

[...]

npm i @sentry/node@7

[...]

node --input-type=module --eval "import Sentry from '@sentry/node'; console.log(Sentry.SDK_VERSION);"

7.114.0

npm i @sentry/node@8

[...]

node --input-type=module --eval "import Sentry from '@sentry/node'; console.log(Sentry.SDK_VERSION);"

file://[snip]/[eval1]:1
import Sentry from '@sentry/node'; console.log(Sentry.SDK_VERSION);
       ^^^^^^
SyntaxError: The requested module '@sentry/node' does not provide an export named 'default'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
    at async ModuleLoader.eval (node:internal/modules/esm/loader:212:24)
    at async loadESM (node:internal/process/esm_loader:28:7)
    at async handleMainPromise (node:internal/modules/run_main:113:12)

Node.js v20.12.2

Expected Result

Default export continues to exist, or the change is documented as a breaking change in the vb8 migration guide.

Actual Result

Not documented as far as I can tell, and no longer a default export.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions