Skip to content
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

Update ts-tranformer to support jest/ts-jest 27 #2942

Closed
danielstreit opened this issue Jun 2, 2021 · 0 comments
Closed

Update ts-tranformer to support jest/ts-jest 27 #2942

danielstreit opened this issue Jun 2, 2021 · 0 comments

Comments

@danielstreit
Copy link

Which package?

ts-transformer

Describe the request

ts-transformer has a peer dependency on ts-jest 26

I'd like to use ts-transformer with the latest version of jest and ts-jest (v27).

To Reproduce

When I naively run ts-transformer with jest/ts-jest 27, I get the following error:

TypeError: Cannot read property 'visitNode' of undefined

      at node_modules/@formatjs/ts-transformer/src/transform.js:422:23
      at transformSourceFileOrBundle (node_modules/typescript/lib/typescript.js:84914:57)
      at transformation (node_modules/typescript/lib/typescript.js:102918:24)
      at transformRoot (node_modules/typescript/lib/typescript.js:102945:82)
      at Object.transformNodes (node_modules/typescript/lib/typescript.js:102929:78)
      at emitJsFileOrBundle (node_modules/typescript/lib/typescript.js:103614:32)
      at emitSourceFileOrBundle (node_modules/typescript/lib/typescript.js:103561:13)
      at forEachEmittedFile (node_modules/typescript/lib/typescript.js:103282:34)
      at Object.emitFiles (node_modules/typescript/lib/typescript.js:103541:9)
      at emitWorker (node_modules/typescript/lib/typescript.js:110324:33)
@longlho longlho closed this as completed in 7d994e4 Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant