Skip to content

Cypress + Vite 5 + Typescript: exports is not defined in ES module scope #5940

@NormalCrazy000

Description

@NormalCrazy000

Description

When I try to start cypress in a vite 5 project with typescript the console returns this error:
Screenshot 2024-09-28 231716
I think it is due to cypress having problems with the tsconfig.json structure created by vite.

URL of Issue(s)

https://github.com/NormalCrazy000/vite5-Cypress.git

Steps to replicate

  1. npm install
  2. npx cypress open

Browser

No response

Device

  • PC
  • Mac
  • iPhone
  • iPad
  • Android Phone
  • Android Tablet

Additional Information

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