question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'tags' of undefined

See original GitHub issue

Error 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:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
laiscoolbluecommented, Sep 10, 2019

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

0reactions
lgandeckicommented, Oct 16, 2020

🎉 This issue has been resolved in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found