TypeError: Cannot read property 'tags' of undefined
See original GitHub issueError output when I use cypress-tags run -e TAGS='not @Ignore' --env mode=aws
> cypress-tags run -e TAGS='not @Ignore' --env mode=aws
/opt/jenkins/workspace/<project-name>/node_modules/cypress-cucumber-preprocessor/cypress-tags.js:32
const featureTags = parsedFeature.feature.tags;
^
TypeError: Cannot read property 'tags' of undefined
at paths.forEach.featurePath (/opt/jenkins/workspace/<project-name>/node_modules/cypress-cucumber-preprocessor/cypress-tags.js:32:45)
at Array.forEach (<anonymous>)
at Object.<anonymous> (/opt/jenkins/workspace/<project-name>/node_modules/cypress-cucumber-preprocessor/cypress-tags.js:28:7)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)
at internal/main/run_main_module.js:21:11
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! testCi: `cypress-tags run -e TAGS='not @Ignore' --env mode=aws`
npm ERR! Exit status 1
npm ERR!
If I use cypress run -e TAGS='not @Ignore' --env mode=aws
then I see no issue but it doesn’t process TAGS attribute
node version: 11.13.0
From package.json
"devDependencies": {
"axe-core": "^3.3.1",
"chai": "^4.2.0",
"cypress": "^3.4.1",
"cypress-axe": "^0.5.1",
"cypress-cucumber-preprocessor": "^1.16.0"
},
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to fix: "TypeError: Cannot read property 'tag' of undefined ...
The error means client.users.get(data.user) is returning undefined, hence there cannot be a property tag on it. Presumably this means the ...
Read more >TypeError: Cannot read property 'tags' of undefined
When they tested Tag Added to Lead trigger, it failed with Javascript Exception: TypeError: Cannot read property 'tags' of undefined. This was ...
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError: Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError: Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an undefined...
Read more >Cannot read property 'tag' of null · Issue #1796 - GitHub
Describe the bug Seeing an issue after upgrading to Enzyme 3.5.0 & enzyme-adapter-react-16 1.3.0 and react 16.4.2 on a large number of tests ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
AFAIK
-e
is a shorter version for--env
, so you’re repeating this definition twice.Just do
cypress run -e TAGS='not @Ignore',mode=aws
🎉 This issue has been resolved in version 4.0.0 🎉
The release is available on:
Your semantic-release bot 📦🚀