Comments (11)
please check out https://github.com/currents-dev/cypress-cloud/releases/tag/v1.8.0-beta.5
npm i cypress-cloud@beta
from cypress-cloud.
> cy:ci
> cypress-cloud --parallel --record --ci-build-id 1
currents:capture capturing stdout +0ms
cypress:cli exporting Cypress module interface +0ms
currents:cli parsed CLI flags { component: false, e2e: true, parallel: true, record: true, headed: false, ciBuildId: '1' } +0ms
currents:cli parsed run params: { parallel: true, record: true, headed: false, ciBuildId: '1', config: undefined, env: undefined, reporterOptions: undefined, testingType: 'e2e', recordKey: undefined } +2ms
currents:run run params { parallel: true, record: true, headed: false, ciBuildId: '1', config: undefined, env: undefined, reporterOptions: undefined, testingType: 'e2e', recordKey: undefined } +0ms
currents:run params after preprocess { parallel: true, record: true, headed: false, ciBuildId: '1', config: undefined, env: undefined, reporterOptions: undefined, testingType: 'e2e', recordKey: undefined, spec: undefined } +1ms
currents:config loading currents config file from 'C:\Users\Artem\projects\Cypress\currents.config.js' +0ms
currents:config failed loading config file from: Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file and data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:' +2ms
currents:config loading currents config file from 'C:\Users\Artem\projects\Cypress\currents.config.cjs' +1ms
currents:config failed loading config file from: Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file and data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:' +1ms
currents:config loading currents config file from 'C:\Users\Artem\projects\Cypress\currents.config.mjs' +1ms
currents:config failed loading config file from: Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file and data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:' +0ms
WARNING Failed to load config file, falling back to the default config. Attempted locations: [
'C:\\Users\\Artem\\projects\\Cypress\\currents.config.js',
'C:\\Users\\Artem\\projects\\Cypress\\currents.config.cjs',
'C:\\Users\\Artem\\projects\\Cypress\\currents.config.mjs'
]
currents:validateParams resolving currents params: { parallel: true, record: true, headed: false, ciBuildId: '1', config: undefined, env: undefined, reporterOptions: undefined, testingType: 'e2e', recordKey: undefined, spec: undefined } +0ms
currents:validateParams resolving currents config file: { e2e: { batchSize: 3 }, component: { batchSize: 5 }, cloudServiceUrl: 'https://cy.currents.dev' } +1ms
currents:validateParams validating currents params: { parallel: true, record: true, headed: false, ciBuildId: '1', config: undefined, env: undefined, reporterOptions: undefined, testingType: 'e2e', recordKey: undefined, spec: undefined, cloudServiceUrl: 'https://cy.currents.dev', projectId: undefined, batchSize: 3 } +0ms
ERROR Cannot resolve projectId. Please use one of the following:
- provide it as a "projectId" property for "run" API method
- set CURRENTS_PROJECT_ID environment variable
- set "projectId" in "currents.config.{c}js" file
from cypress-cloud.
@MadSandwich Please try using [email protected], should be good for ESM on Windows
Everything looks good. Thanks! The issue can be closed after merging this fix.
from cypress-cloud.
A must have, using @badeball/cypress-cucumber-preprocessor
, if I remove type:module
, it will crash my run command.
2023-06-13T13:14:38.196Z cypress:lifecycle:child:RunPlugins:50466 plugins file errored: TypeError: Cannot read properties of undefined (reading 'addCucumberPreprocessorPlugin')
from cypress-cloud.
@agoldis unfortunately for me, it's still reproducing.
in package.json -> "cypress-cloud": "^1.8.0-beta.5",
from cypress-cloud.
@MadSandwich
Please share your debug logs (and refer to #142)
from cypress-cloud.
@agoldis unfortunately I can't share such logs, they have information that I couldn't share. But I've created a minimal reproducible example.
https://github.com/MadSandwich/Cypress
And here the error that I've receive with such setup, I have same configurations on my real repo and same errors, so that probably could help to find where an actual problem. (Maybe I missing something. All settings in the config was set to likely non-existing, just to show an error)
from cypress-cloud.
@MadSandwich please remove the sensitive information, it'd greatly speed up the troubleshooting. And thanks for sharing the exampl
from cypress-cloud.
- It was done in my previous example.
- Yes, I've double checked, that I use beta version.
Here is the simple video of trying 2 ways of configuration.
https://github.com/currents-dev/cypress-cloud/assets/57759145/99d9a11e-ae90-4d01-bdbe-5876fc96674c
@agoldis, I've made an repo where u can check everything you need, because, I not sure, that I cover all needed for you details. Hope it will help u more.
from cypress-cloud.
@MadSandwich can you please enable the debug mode and share the logs from the repo you created. Thank you
from cypress-cloud.
@MadSandwich Please try using [email protected], should be good for ESM on Windows
from cypress-cloud.
Related Issues (20)
- Can't use --headless on CLI. HOT 1
- Using CJS syntax in EMS setup fails HOT 5
- When launching 2 cypress-cloud run command for a same pipeline by specifying a tag, the second tagged run is not run.
- Glob patterns not working for --spec parameter HOT 1
- Advice on how best to avoid clashes between `cloudPlugin` and our own setup? HOT 1
- Question: Why not seeing the current test on 'npx cypress-cloud run' command HOT 4
- Executing requirements before execution of all spec files HOT 1
- Mochawesome.json is always deleted for each spec file ran HOT 2
- CSR-674 exit with code 1 when no specs detected
- "--record" flag is always being set to false HOT 4
- [CSR-791] cypress-cloud is not compatible with cypress 13.x HOT 93
- Override specPattern with CLI Argument HOT 7
- Use correct word when using --help flag
- "TypeError: Expected a finite number" after finishing a run HOT 3
- Cypress 13, CypressError: `cy.task('currents:test:after:run')` failed HOT 4
- Rename project HOT 3
- Cypress binaries HOT 3
- Cypress binaries from currents isn't found anymore HOT 1
- Errors while running parallel tests with cypress-cloud HOT 4
- Upload docker images with old cypress binaries HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cypress-cloud.