Closed as not planned
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/svelte
SDK Version
7.98.0
Framework Version
Svelte 4
Link to Sentry event
No response
SDK Setup
None needed
Steps to Reproduce
https://stackblitz.com/edit/stackblitz-starters-h72nkr?file=index.js
- Use
"type": "module"
in package.json - Import
@sentry/svelte
in Node.js
Expected Result
Should work
Actual Result
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/projects/stackblitz-starters-h72nkr/node_modules/svelte/src/runtime/ssr.js from /home/projects/stackblitz-starters-h72nkr/node_modules/@sentry/svelte/cjs/performance.js not supported.
Instead change the require of ssr.js in /home/projects/stackblitz-starters-h72nkr/node_modules/@sentry/svelte/cjs/performance.js to a dynamic import() which is available in all CommonJS modules.
The cause of this error is correctly described by https://publint.dev/@sentry/svelte@7.98.0
### Tasks
Metadata
Metadata
Assignees
Type
Projects
Status
Waiting for: Community