Skip to content

ts-jest/dist/types.d.ts:15:38 - error TS2304: Cannot find name 'BabelConfig'. #1666

@moltar

Description

@moltar

🐛 Bug Report

I'm using ts-jest in a project programmatically (not CLI) and trying to compile the project.

Getting the following:

node_modules/ts-jest/dist/types.d.ts:15:38 - error TS2304: Cannot find name 'BabelConfig'.

15     babelConfig?: boolean | string | BabelConfig;
                                        ~~~~~~~~~~~

node_modules/ts-jest/dist/types.d.ts:40:12 - error TS2304: Cannot find name 'BabelConfig'.

40     value: BabelConfig;
              ~~~~~~~~~~~

To Reproduce

https://github.com/moltar/ts-jest-babel-config

Expected behavior

Compilation to succeed.

Link to repo (highly encouraged)

https://github.com/moltar/ts-jest-babel-config

envinfo

System:
    OS: macOS

Npm packages:
    "jest": "26.0.1",
    "ts-jest": "26.0.0",
    "typescript": "3.9.3"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions