Skip to content
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

TypeError: Cannot read properties of undefined (reading 'uid'). Cypress 9.2.1 along with cucumber bdd. #19707

Closed
Vik4290 opened this issue Jan 14, 2022 · 3 comments

Comments

@Vik4290
Copy link

Vik4290 commented Jan 14, 2022

Current behavior

Screenshot 2022-01-14 at 1 22 07 PM

==============================================================

Package.json file:

{
"name": "package.json",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"lint": "eslint 'cypress//*.{js,ts,tsx}'",
"pretty": "prettier --write "cypress/
/.{ts,js,jsx,json}""
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"eslint": "^8.6.0",
"eslint-config-airbnb-typescript": "^16.1.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-prettier": "^4.0.0",
"prettier": "^2.5.1"
},
"cypress:open": "cypress open",
"dependencies": {
"@cypress/browserify-preprocessor": "^3.0.2",
"@types/chai-string": "^1.4.2",
"@types/chai-subset": "^1.3.3",
"@types/cypress-cucumber-preprocessor": "^4.0.1",
"chai": "^4.3.4",
"chai-string": "^1.5.0",
"chai-subset": "^1.6.0",
"cypress": "^9.2",
"cypress-cucumber-preprocessor": "^4.3.1",
"cypress-file-upload": "^5.0.8",
"cypress-promise": "^1.1.0",
"husky": "^7.0.4",
"lint-staged": "^12.1.7",
"tsify": "^5.0.4",
"typescript": "^4.5.4",
"uuidv4": "^6.2.12",
"@testing-library/cypress": "^8.0.2",
"@types/uuid": "^8.3.4",
"cypress-tags": "^0.3.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"./cypress/**/
.{js,ts}": [
"eslint --fix --max-warnings 0"
],
"./**/*.{json,md,yml}": [
"prettier --write"
]
},
"cypress-cucumber-preprocessor": {
"nonGlobalStepDefinitions": true
},
"resolutions": {
"graceful-fs": "4.2.9"
}

}

Desired behavior

There should not be any error. Code must run.

Test code to reproduce

will provide privately

Cypress Version

cypress 9.2.1

Other

No response

@mjhenkes
Copy link
Member

Maybe fixed by #19676

@mjhenkes mjhenkes added stage: ready for work The issue is reproducible and in scope type: bug labels Jan 14, 2022
@sainthkh
Copy link
Contributor

Sorry for the late reply.

Is it still not working with the latest Cypress?

@cypress-bot cypress-bot bot added stage: backlog and removed stage: ready for work The issue is reproducible and in scope labels Apr 29, 2022
@sainthkh
Copy link
Contributor

sainthkh commented Jul 5, 2022

Closing because of the inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants