-
Notifications
You must be signed in to change notification settings - Fork 382
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
Cypress 10.1.0 and 10.2.0 ERR_UNKNOWN_FILE_EXTENSION typescript #688
Comments
The same. but I can locally repeat it. |
Hello, I had exactly the same problem : everything worked fine locally, I only had the "error unknown file ext..." in github actions.
The rest of the files are in regular typescript and it is ok. |
@benjamin-schneider thanks for posting a temporary workaround. I think #615 could take care of this issue. |
I'm facing the same issue with |
Same here. |
@alucardu we just released an included image last week with global TS support - |
@admah No, it doesn't work. It can be easily reproduced:
import { defineConfig } from 'cypress'
export default defineConfig({})
docker run -it --rm -v $PWD/cypress.config.ts:/e2e-tests/cypress.config.ts -w /e2e-tests cypress/included:10.3.1-typescript Output:
|
This config is also a valid JS code, so I tried to mount it as -... -v $PWD/cypress.config.ts:/e2e-tests/cypress.config.ts ...
+... -v $PWD/cypress.config.ts:/e2e-tests/cypress.config.mjs ... and the error was:
There is nothing to do with TypeScript. The issue is global... |
@admah thank you, i've tried that one as well but also didn't work. I ended up with this yml config: ############################
## TEST
test:cypress:
extends: .base
image:
name: cypress/base:14.7.0
entrypoint: ['']
stage: test
script:
- source .gitlab/scripts/test_cypress.sh
rules:
- *branch
|
So, the issue is global: missing We (users) have two possible solutions here:
|
@GarrisonD |
@coryasilva If I planned to run |
same problem with cypress 10.5.0 |
Happening to me on 10.9 in an NX project |
This answer from akshayjai1 has 2 down votes on Stack Overflow. No explanation though. |
it would be really nice to solve this issue. we would rather be able to use the |
|
I'm using cypress/included:10.2.0 image to run headless tests on a GitHub action workflow. The following is my cypress docker configuration:
Locally it runs fine, but on a GitHub action workflow I get the following error when running
docker-compose run cypress_headless
Above that error is another error, but I don't know if it's related:
My project utilizes TypeScript and here is my /app/cypress.config.ts:
I do not have a cypress/index.ts file.
I have tried using both Cypress 10.1.0 and 10.2.0 but neither works. Again, this problem only occurs when running it as a GitHub action.
The text was updated successfully, but these errors were encountered: