Skip to content
Advertisement

Cypress is not running in ci SyntaxError: Unexpected token ‘export’ with cypress-io/github-action@v2 typescript

I have the following plugin file for cypress: frontend/cypress/plugins/index.ts:

JavaScript

When I run it on my machine it’s working but when I use cypress-io/github-action@v2 in my github actions I get the following error:

JavaScript

This is my .github/workflows/cypress-tests.yml:

JavaScript

My frontend/cypress.json config file is empty. This is my frontend/cypress/tsconfig.json in the cypress folder:

JavaScript

This frontend/cypress/plugins/tsconfig.jsonis inside the Plugins folder:

JavaScript

I have copied this configuration from npm init vue@latest with typescript and cypress.

What’s the problem?

Advertisement

Answer

I forgot to add typescript to my dependencies:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement