Closed benoitgrasset-cliq closed 2 weeks ago
Hi @benoitgrasset-cliq, can you explain why you think your issue is related to the Sentry SDK?
Additionally I saw that your projects includes @sentry/tracing
, which is deprecated – you can safely remove that since you are running using v8 of our next SDK.
Thank you for your answer ! I had an issue with babel-jest
module which is not up to date, and probably @sentry/tracing
also.
I removed both of them and used ts-jest
instead.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
8.31.0
Framework Version
Next 14.2.9
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
I laucnh my tests with
jest
:yarn test
This is my package.json file:
babel.config.json
file:jest.config.js
file:Expected Result
I expect my tests to be run.
Actual Result
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/benoit/projets/react-hype-analytics/node_modules/string-width/index.js from /home/benoit/projets/react-hype-analytics/node_modules/cliui/build/index.cjs not supported. Instead change the require of index.js in /home/benoit/projets/react-hype-analytics/node_modules/cliui/build/index.cjs to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (/home/benoit/projets/react-hype-analytics/node_modules/cliui/build/index.cjs:291:21)