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/angular
SDK Version
7.99.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
Repro at:
https://stackblitz.com/edit/vitest-dev-vitest-b9tqx7?file=package.json,test%2Fbasic.test.ts%3AL3
Expected Result
No error.
Actual Result
I'm attempting to migrate a test suite to vitest as per: https://analogjs.org/docs/features/testing/vitest#manual-installation and @sentry/angular
seems to prevent this because as soon as it is imported, Vite will complain about:
Error: require() of ES Module@angular/core/fesm2015/core.mjs not supported.
Instead change the require of @angular/core/fesm2015/core.mjs to a dynamic import() which is available in all CommonJS modules.
This was reported previously here: #9376 but in a different context
Metadata
Metadata
Assignees
Type
Projects
Status
No status