You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I'm working on a typescript project, and I'm using jest to run the tests.
I introduced ttypescript and ts-transform-paths but now I have a strange error: for each test I have an error with this message:
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'impliedNodeFormat')
at Object.getModeForUsageLocation (node_modules/typescript/lib/typescript.js:114398:18)
at resolveExternalModule (node_modules/typescript/lib/typescript.js:50141:90)
at resolveExternalModuleNameWorker (node_modules/typescript/lib/typescript.js:50117:19)
at getExternalModuleFileFromDeclaration (node_modules/typescript/lib/typescript.js:85790:32)
at Object.getExternalModuleFileFromDeclaration (node_modules/typescript/lib/typescript.js:85629:36)
at tryGetModuleNameFromDeclaration (node_modules/typescript/lib/typescript.js:29494:59)
at Object.getExternalModuleNameLiteral (node_modules/typescript/lib/typescript.js:29458:20)
at createRequireCall (node_modules/typescript/lib/typescript.js:103357:33)
at visitImportDeclaration (node_modules/typescript/lib/typescript.js:103317:80)
at topLevelVisitor (node_modules/typescript/lib/typescript.js:102966:28)
The error doesn't come up if I remove { "transform": "@zerollup/ts-transform-paths" } from compilerOptions.plugins
For reference this is the content of my tsconfig.json
Hi.
I'm working on a typescript project, and I'm using jest to run the tests.
I introduced ttypescript and ts-transform-paths but now I have a strange error: for each test I have an error with this message:
The error doesn't come up if I remove
{ "transform": "@zerollup/ts-transform-paths" }
fromcompilerOptions.plugins
For reference this is the content of my tsconfig.json
and the jest.config.cjs
can you help me understanding what is going on?
The text was updated successfully, but these errors were encountered: