Skip to content
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

SDK doesn't support import assertions yet #11949

Open
3 tasks done
Zarathustra2 opened this issue May 8, 2024 · 1 comment
Open
3 tasks done

SDK doesn't support import assertions yet #11949

Zarathustra2 opened this issue May 8, 2024 · 1 comment

Comments

@Zarathustra2
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

"@sentry/nextjs": "^7.113.0",

Framework Version

18.2.0

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

Add following import line with the assert statement

import data from "../../data/foo.json" assert { type: "json" }

See: #8442 (comment)

Expected Result

Sentry should not throw an SyntaxError

Actual Result

SyntaxError: Unexpected token (9:48) in __SENTRY_WRAPPING_TARGET_FILE__.cjs
[@sentry/nextjs] Could not instrument /vercel/path0/pages/<SOME_PAGE>/index.js. An error occurred while auto-wrapping:
@lforst
Copy link
Member

lforst commented May 8, 2024

Thanks! Putting on the backlog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants