Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #2774
Closed
Open
Issue created Jul 12, 2017 by Administrator@rootContributor

Bug in jsx-no-target-blank eslint rule

Created by: green-arrow

Is this a bug report?

Yes

Can you also reproduce the problem with npm 4.x?

Yes

Which terms did you search for in User Guide?

N/A

Environment

  1. node -v: 7.8.0
  2. npm -v: 4.2.0
  3. yarn --version (if you use Yarn): 0.27.5
  4. npm ls react-scripts (if you haven’t ejected): 1.0.10

Then, specify:

  1. Operating system: macOS Sierra
  2. Browser and version (if relevant): Not relevant

Steps to Reproduce

  1. Insert an a tag with target="_blank" rel="noopener noreferrer" and some styles from glamor
  2. Run via yarn start

Expected Behavior

No errors.

Actual Behavior

Unexpected error in console: TypeError: Cannot read property 'name' of undefined in the jsx-no-target-blank eslint rule.

Additional Comments

I filed a bug in the eslint repo: yannickcr/eslint-plugin-react#1296

I am unable to reproduce this with a fresh app. This started occurring after upgrading from 1.0.4 to 1.0.10. I've tried removing node_modules and yarn.lock and installing from scratch, but still get the same error.

Assignee
Assign to
Time tracking