Skip to content

TypeScript incorrectly resolved in @cypress/wwebpack-batteries-included-preprocessor when typescript option set to true #32338

@AtofStryker

Description

@AtofStryker

Current behavior

Currently, as defined in the Cypress 15 migration guide, setting typescript: true inside @cypress/webpack-batteries-included-preprocessor should auto discover the installed TypeScript compiler in the user's project. This is not working correctly as reported in ##32305

Desired behavior

as seen in https://docs.cypress.io/app/references/migration-guide#cypresswebpack-batteries-included-preprocessor-no-longer-shims-all-built-ins-provided-by-webpack-v4, setting typescript: true should work as expected

Test code to reproduce

See cypress-io/cypress-test-tiny#98

Cypress Version

15.0.0

Node version

22.15.1

Operating System

any

Debug Logs

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions