Closed
Description
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
node -v
: 7.8.0npm -v
: 4.2.0yarn --version
(if you use Yarn): 0.27.5npm ls react-scripts
(if you haven’t ejected): 1.0.10
Then, specify:
- Operating system: macOS Sierra
- Browser and version (if relevant): Not relevant
Steps to Reproduce
- Insert an
a
tag withtarget="_blank" rel="noopener noreferrer"
and some styles fromglamor
- 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: jsx-eslint/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.