-
Notifications
You must be signed in to change notification settings - Fork 454
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
[Bug]: Version 29.2.1
breaks default imports
#4468
Comments
I could understand why it worked at For some reasons, As a workaround, you can use |
Thanks for the reply! Indeed, updating the Jest configuration does the trick: transform: {
"^.+\\.ts$": ["ts-jest", { useESM: true, tsconfig: { module: "ESNext" } }],
}, I'll let you keep the issue around or close it depending on how you want to address this. In my case it's probably an acceptable compromise, even though it may create new problems down the line. |
Version
29.2.1
Steps to reproduce
npm i && npm run build
. TypeScript compilation should succeed.npm test
.Expected behavior
npm test
should pass with no error.You can install
ts-jest
version29.2.0
instead and see it succeed.Actual behavior
For what it's worth, even though I wasn't expecting to see the CJS version imported,
node_modules/i18next-fs-backend/cjs/index
does exist and export a default class.Debug log
ts-jest.log
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: